def client(): name = negociateProtocol(c, True) Process.send(pid, name)
def server(): name = negociateProtocol(s, False) Process.send(pid, name)