dp_connect
- Syntax
-
- dp_connect channelType args
-
- Comments
-
- dp_connect establishes a Tcl-DP channel. The channelType
is based on the channel types that are installed; the
base Tcl-DP package comes with TCP, UDP, IPM, serial
and email channels. The args are specific to
each channel type since TCP has completely different
options than serial ports do. Please see the
channel documentation for information on the available
arguments for that channel type. Once the channels
are established, one can configure them using the normal fconfigure
process.
-
- All I/O on these channels is performed using the
standard Tcl puts/gets or the Tcl-DP I/O commands:
dp_copy, dp_send, and dp_recv.
-
- dp_connect returns the ID of the new channel.
-
- Examples
-
- set chan [dp_connect tcp -server true -myport 4466]
- dp_connect tcp -host www.foo.bar.com -port 4466
- dp_connect udp -host localhost -port 1906 -myport
1905
- dp_connect serial -device serial1
- dp_connect email -address foo@bar.com -identifier 100
- dp_connect ipm -group 227.88.44.11 -myport 19000 -ttl
2
-