O'Reilly logo

APIs at Work, Second Edition by Ron Hawkins, Doug Pence, Bruce Vining

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Defining a TCP Server

As our server environment currently exists, you call the program FIG15_41 to start the server environment. You are probably accustomed, though, to using the Start TCP/IP command (STRTCP) or the Start TCP/IP Server command (STRTCPSVR) to start servers such as Telnet or FTP. With our My_Somelib_Server, you can continue to use these commands!

The Add TCP/IP Server command, ADDTCPSVR, allows us to define additional TCP/IP servers and specify an exit program to be called when starting or ending the TCP/IP server. Figure 15.46 shows the command to register our server, My_Somelib_Server, and to indicate that program SOMELIB/FIG15_47 should be called when starting or ending this server. This command specifies that the special value ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required