Previous Topic: Examples of Using TCP &SOCKET Verbs

Next Topic: $NMSATC2 - Command Processor


$NMSATC1-TCP Socket Server

This sample server procedure accepts connections and transfers them to new NCL processes that are started by the server to service the connections.

To invoke the server, you must specify a port number.

$NMSATC1 PORT=port_number

This procedure starts the procedure $NMSATC2 as a new process to service each new connection.

This sample also demonstrates the use of an asynchronous &SOCKET verb.

This sample works in conjunction with the following sample procedures: