Programming TCP/IP Access to ADR Cards

Server Side Command Display

When the server is started it enters a "listening" mode where it is waiting to accept connection requests from clients.

srvrDOS1.jpg (18,435 bytes)

When a client connects the server:

  • accepts the connection from the client as a new socket
  • receives the command from the client
  • writes the command to the serial port (ie to the ADR card)
  • reads the response from the serial port
  • sends the response to the client
  • closes the socket created for this connection
  • waits to accept the next connection on the listening socket

srvrDOS2.jpg (24,008 bytes)

 

The server also provides some rudimentary help text. 

srvrDOShelp.jpg (41,230 bytes)