serve


Description:

public abstract string serve (CallbackSendDelegate cb_send, CallbackRecvDelegate cb_recv, string my_address, string dest_address) throws TunnelError, RPCError

Serves a tunnel. Usually, the other end (that we call the client) is executing in the meantime the method 'request'. The implementor can use the callback functions cb_send(mesg) and cb_recv() to communicate with the other end during the phases of establishing the tunnel. When the method exits, if all goes well, there must exist a new NIC that represents the working tunnel. The return-value is the name of the new NIC.