| 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
APIsCompiling Applications that Use the SCTP APIs |
|
Before compiling an application, ensure the following:
To compile an application program that uses the SCTP APIs, enter the following command at the HP-UX prompt: # cc –o <output_filename> -D_XOPEN_SOURCE_EXTENDED <input_filename> -lxnet –lsctp where:
Example 3-1 Sample Commands to Compile the Server and Client Programs Consider a server application called srv.c and a client application called cli.c. You can use the following command to compile the server application: # cc –o srv -D_XOPEN_SOURCE_EXTENDED srv.c -lxnet –lsctp You can use the following command to compile the client application: # cc –o cli -D_XOPEN_SOURCE_EXTENDED cli.c -lxnet –lsctp |
|||||||||||||||||||||||||||||||
|
|||||||||||||||