Licensed/Authorized CSI International customers can retrieve software authorization codes online. ---->>

CSI International logo
Request Free software trial

Sample Code: Applications

TCP/IP for z/VSE


  • LPRDEMO
    expand_more

    * LPRDEMO -This is an example of writing a program that will invoke a VSE CLIENT. In this case, it will invoke the LPR client to cause it to send a report to a PC somewhere on the LAN. You will need to modify the source code's hardcoded IP address and the file name for this demo to work on your system.

  • FTPDEMO
    expand_more

    * FTPDEMO - This program will allow you to send data from a VSE assembler program via FTP! This program will use the SOCKET FTP command to connect to a specific IP address, perform a series of commands, retrieve the responses, and display the result. You can also add GET and PUT to the series of inline.

  • SAMSERVR
    expand_more

    * SAMSERVR - This contains a pair of programs. One of them is a client, the other is a server. You can execute these in separate partitions, or even separate TCP/IP for VSE sites and demonstrates the ease of creating your own client/server applications.

  • SAMPBSDC
    expand_more

    * SAMPBSDC - This is a sample TCP Client/Server application that uses the BSD-C interface. The client will establish a connection, read commands from SYSIPT, display the data on SYSLST and SYSLOG, and send the commands to the server. The server will acknowledge the data and respond to the client. The client will display the response on SYSLST and SYSLOG. After all of the SYSIPT data has been processed, the client will terminate, and the server will wait for more data.

  • SERV$DA
    expand_more

    * SERV$DA - This stand-alone server program operates a lot like CGI$DA with the exception that you TELNET into port 666 and you hit ENTER to refresh the screen. Press a non-blank key, and the session terminates, and the server is ready for another session. This is a nice demonstration of a simple server that supports one session at a time.

  • SERV$DAM
    expand_more

    * SERV$DAM - This program does the same thing as SERV$DA, but supports multiple concurrent users by using a more complex system where the main task opens a socket and passes the remainder of the session to a subtask. The main task then allocates another socket and waits for another connection and repeats the process. This is a nice demonstration of a more complicated server that supports more than 200 concurrent requests at a time.

  • SENDBEEP
    expand_more

    * SENDBEEP - Want to have your numeric or alpha numeric pager go off from a VSE batch job? This example shows how to POST a request to SMARTBEEP.COM and do just that. It is easily configurable to work for any beeper service that allows paging from their web site.

  • SERVCICS
    expand_more

    * SERVCICS - Do you want to write a multi-tasking CICS-based server? This assembler program has the main task that handles the repeated SOCKET OPEN requests and then passes control to a subtask that will handle all of the RECEIVE/SEND/CLOSE processing. It comes with a REXX batch program that is used for testing communications with the CICS server. You can also run multiple tests against the CICS server at the same time!

Learn More: TCP/IP for z/VSE
Share by: