Example: lrs_accept_connection

In the following example, socket four is established to listen to an incoming connection. The lrs_accept_connection function creates a new socket (socket five) to accept the connection and send data to the server.

 /* accept(): socket 5 accepted via socket 4 */
lrs_accept_connection("socket4", "socket5");
 /* send(): Send to socket 5 */
lrs_send ("socket5", "buf5", "TargetSocket=199.203.77.246:21", LrsLastArg );