Chapter 7 TCP Library
© National Instruments Corporation 7-11 LabWindows/CVI Standard Libraries
ServerTCPWriteint status = ServerTCPWrite (unsigned int conversationHandle, void *dataPointer,
unsigned int dataSize, unsigned int timeout);
Purpose
Writes data to a TCP client application.
Parameters
Input conversationHandle unsigned integer Uniquely identifies the conversation.
dataPointer void pointer Buffer holding data.
dataSize unsigned integer Number of bytes to write.
timeout unsigned integer Timeout in ms.
Return Value
status integer Returns the number of bytes written, or a
negative error code if an error occurs; Refer
to error codes in Table 7-3.
See Also
RegisterTCPServer, ServerTCPRead
UnregisterTCPServerint status = UnregisterTCPServer (unsigned int portNumber);
Purpose
Unregisters your server application program as a TCP server.
Parameters
Input portNumber unsigned integer Uniquely identifies a server on a single
machine.