lrs_get_socket_handler
| Sockets Functions |
Retrieves the socket handler for the specified socket.
int lrs_get_socket_handler( char *s_desc );| s_desc | A descriptor identifying the socket. |
The lrs_get_socket_handler function retrieves the socket handler for the specified socket. Once you retrieve the socket handler, you can use it in subsequent functions.
This function is not recorded during a WinSock session—you manually insert it into your script.
Return Values
Parameterization
You cannot use standard parameterization for any arguments in this function.
Example
In the following example, lrs_get_socket_handler retrieves the socket handler of socket0.
int handler=0;
/* create the socket0 */
lrs_create_socket ("socket0", "UDP", LrsLastArg);/* get the socket handler */
handler = lrs_get_socket_handler("socket0");lr_output_message("socket0 handler is %d", handler);socket0 handler is 176

