BaseTunnel
Object Hierarchy:
Description:
public abstract class BaseTunnel : Object
Namespace: Ntk.Core
Package: vd
Content:
Static methods:
Creation methods:
Methods:
- public abstract
string
request (CallbackSendDelegate cb_send, CallbackRecvDelegate cb_recv, string
my_address, string
dest_address) throws TunnelError, RPCError
Requests a tunnel. Usually, the other end (that we call the server)
is executing in the meantime the method 'serve'. 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.
- 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.
- public abstract void close (
string
nic_name, string
my_address, string
dest_address) throws TunnelError
Closes a tunnel.