| United States-English |
|
|
|
![]() |
SCTP Programmer's Guide: HP-UX 11i v2, HP-UX 11i v3 > Chapter 3 Compiling and Running Applications that Use the SCTP Socket
APIsRunning Sample Applications that use the SCTP APIs |
|
This section discusses how to run the sample applications that are compiled using the SCTP APIs. Consider the sample server and client applications listed in Appendix A for one-to-one and one-to-many connections. These sample applications are available in the /usr/lib/demos/networking/sctp directory. To run the sample server application, enter the following command: # ./srv_app <port_number> where:
Example 3-2 Sample Command to Run the Server Application To run the sample server application in a one-to-one or one-to-many connection, enter the following command: # ./srv_app 6000 The following output is displayed:
This output denotes that the server is ready to accept connections on port 6000. To run the sample client application , enter the following command: #./cli_app <ip_address> <port_number> where:
To check whether sctpd is running on the system, enter the following command: # ps –ef | grep sctpd The following output is displayed if sctpd is running:
Example 3-3 Sample Command to Run the Client Application To run the sample client application in a one-to-one or one-to-many connection, enter the following command: #./cli_app 15.70.189.135 6000 The following output is displayed:
This output denotes that the client has established an association with the server on the port 6000. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||