Syntax
dp_connect tcp -server bool -host hostname -port thePort -myport myPort -myaddr addr -async bAsync
Comments
A TCP connection logically breaks down into two types: server and client. For an exchange to take place, there must be one of each. bool defaults to false.
A server channel must have a minimum of
-server true and -myport myPort specified.
myPort is the port that the server will listen on
while waiting for client connections.
All other options save -myaddr are invalid for servers.
A client must specify the host and port,
at minimum.
hostname is the IP address or hostname of the
server machine.
thePort is the port the server resides on.
If bAsync is true, the socket connection is made
asynchronously.
myAddr and myPort are the IP
address/hostname and the port number of the client,
respectively.
Examples
dp_connect tcp -server true -myport 1025
dp_connect tcp -host foo.com -port 1025
dp_connect tcp -server true -myaddr foo.bar.com -myport 5150
dp_connect tcp -host foo.bar.com -port 5150 -async true