gtpc1m7aTransmission Control Protocol/Internet Protocol

claw_initialization -- Prepare for CLAW Activity

ISO-C only

The claw_initialization function is not available in the TARGET(TPF) C library.

The claw_initialization function prepares the program for CLAW activity.

Format

#include  <claw.h>
int  claw_initialization(const char hostname[8]);

hostname
A pointer to an 8-byte array that contains the host system name by which this host will be known to the workstation.

Normal Return

Return code 0 indicates that the function was successful.

Error Return

Following is a list of return codes that can be returned to the program that calls the claw_initialization function. See CLAW Return Codes for a complete list of the return codes and their definitions.

RC_CLAW_INVALID_FUNCTION

RC_CLAW_INITED_ALREADY

Programming Considerations

Examples

The following example issues the claw_initialization function to prepare for CLAW activity.

#include  <claw.h>
int       claw_rc;
char      hostsys[8]= "TCPIP   ";

·
·
·
claw_rc = claw_initialization(hostsys); /*normal processing path */
·
·
·

Related Information