HP 3000 Manuals

NetIPC Examples [ Net IPC 3000/XL Programmer's Reference Manual ] MPE/iX 5.0 Documentation


Net IPC 3000/XL Programmer's Reference Manual

Chapter 4  NetIPC Examples 

This chapter contains sample programs using NetIPC for both TCP 

access and X.25 (level 3) access:

 *  Example 1 (programs 1A and 1B) present an example of how to set up
    and use a connection (virtual circuit) for TCP access.  The two
    programs, running on different nodes, open communication via call
    sockets.  They then establish a connection (using VC sockets) and
    send and receive data over this connection.  Finally, they terminate
    their connection.

 *  Example 2 (programs 2A and 2B) illustrate the differences in using
    NetIPC for vectored I/O in compatibility mode and in native mode for
    TCP access.

 *  Example 3 (programs 3A and 3B) provides an example using NetIPC to
    communicate using direct access to level 3, X.25 in compatibility
    mode.

 *  Example 4 (programs 4A and 4B) provides an example using NetIPC to
    communicate using direct access to level 3, X.25 in native mode.
    These programs use the features provided with MPE XL X.25 such as
    adding to the facility field, and using fast select.

In these programs, it is assumed that processes are already operating at
the remote and local nodes.  For an example program that illustrates the
use of Remote Process Management (RPM) intrinsics to start processes,
refer to the Using NS3000/XL Network Services Manual.


NOTE You may need to disable timeouts on either the call descriptors or virtual circuit descriptors when writing applications intended for use on networks where you expect significant timing delays due to excessive line noise or traffic.


MPE/iX 5.0 Documentation