HPlogo X25/9000: X.25/9000 Programmer's Guide > Appendix B  Program Examples

Example Programs

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

Several pairs of example programs are shipped with the X.25 product. These programs are in the /usr/netdemo/x25, directory and are as follows:

Table B-1 Title not available (Example Programs)

Program name

Purpose

client.c/server.c

Send/receive one message of data, no Out-of-Band signal handling. For Switched Virtual Circuits only.

client2.c/server2.c

Send/receive one message of data, then send/receive one Interrupt packet, with Out-of-Band signal handling. For Switched Virtual Circuits only.

clientpvc.c/serverpvc.c

Send/receive 1 message of data, then send/receive 1 Interrupt packet, then send a Reset packet with Out-of-Band signal handling. For Permanent Virtual Circuits only.

client2pvc.c/ server2pvc.c

Identical to clientpvc.c/serverpvc.c, except that there is a long loop on sending/receiving data messages. This difference allows the testing of the Out-of-Band Level 2 Down event. For Permanent Virtual Circuits only.

infoserv_client.c/ infoserv.c

Similar to the programs above, but the main difference is that the server "forks" the listener's process before receiving the incoming calls; this allows faster processing at connection time. The other main difference is that several parameters can be configured, such as number of messages, message size, number of processes to fork etc.