TCP Library Chapter 7
LabWindows/CVI Standard Libraries 7-8 © National Instruments Corporation
See Also
RegisterTCPServer
GetTCPErrorString
char *message = GetTCPErrorString (int errorNum)
Purpose
Converts the error number returned by a TCP Library function into a meaningful error message.
Parameters
Input errorNum integer Status returned by a TCP function.
Return Value
message string Explanation of error.
RegisterTCPServer
int status = RegisterTCPServer (unsigned int portNumber,
tcpFuncPtr serverCallbackFunction,
void *callbackData);
Purpose
Registers your program as a valid TCP server and allows other applications to connect to it for
network communication.
Parameters
Input portNumber unsigned integer Uniquely identifies a server on
a single machine.
serverCallbackFunction TCP function
pointer Pointer to the user callback
function.
callbackData void pointer Pointer to the user data.