VxWorks Reference Manual : Libraries
wvSockUploadPathLib - socket upload path library
sockUploadPathLibInit( ) - initialize wvSockUploadPathLib library (Windview)
sockUploadPathCreate( ) - establish an upload path to the host using a socket (Windview)
sockUploadPathClose( ) - close the socket upload path (Windview)
sockUploadPathWrite( ) - write to the socket upload path (Windview)
This file contains routines that are used by wvLib to pass event data from the target buffers to the host. This particular event-upload path opens a normal network socket connected with the WindView host process to transfer the data.
wvSockUploadPathLib, wvTsfsUploadPathLib, wvFileUploadPathLib
sockUploadPathLibInit( ) - initialize wvSockUploadPathLib library (Windview)
STATUS sockUploadPathLibInit (void)
This routine initializes wvSockUploadPathLib by pulling in the routines in this file for use with WindView. It is called during system configuration from usrWindview.c.
OK.
sockUploadPathCreate( ) - establish an upload path to the host using a socket (Windview)
UPLOAD_ID sockUploadPathCreate ( char * ipAddress, /* server's hostname or IP address in .-notation */ short port /* port number to bind to */ )
This routine initializes the TCP/IP connection to the host process that receives uploaded events. It can be retried if the connection attempt fails.
The UPLOAD_ID, or NULL if the connection cannot be completed or memory for the ID is not available.
wvSockUploadPathLib, sockUploadPathClose( )
sockUploadPathClose( ) - close the socket upload path (Windview)
void sockUploadPathClose ( UPLOAD_ID upId /* generic upload-path descriptor */ )
This routine closes the socket connection to the event receiver on the host.
N/A
wvSockUploadPathLib, sockUploadPathCreate( )
sockUploadPathWrite( ) - write to the socket upload path (Windview)
int sockUploadPathWrite ( UPLOAD_ID upId, /* generic upload-path descriptor */ char * pStart, /* address of data to write */ size_t size /* number of bytes of data at pStart */ )
This routine writes size bytes of data beginning at pStart to the upload path between the target and the event receiver on the host.
The number of bytes written, or ERROR.