TCP/IP Programming Manual
bytes_sent = socket_get_len(socket);
int bytes_sent, socket;
TAL Synopsis
?NOLIST, SOURCE SOCKPROC
bytes_sent := socket_get_len(socket);
INT(32) bytes_sent,
socket;
bytes_sent
return value; the number of bytes sent from a sendto_nw call or a send_nw2 call.
socket
input value; the socket specified in the prior sendto_nw or send_nw2 call.
Errors
There are no errors returned by this call.
Usage Guideline
Use socket_get_len after a call to AWAITIOX and before a subsequent call to AWAITIOX.
socket_get_open_info
The socket_get_open_info function is used by the primary process in a NonStop TCP/IP
process pair to get parameters following a socket or socket_nw call.
C Synopsis
#include <socket.h>
#include <in.h>
#include <in6.h>
#include <if.h>
#include <netdb.h>
error = socket_get_open_info(*message);
int error;
struct open_info_message *message;
error
return value; if the call is successful, a zero is returned. If the call is not successful, –1 is returned.
If the call failed, the external variable errno is set as indicated in Errors (page 196).
message
input and return value; refer to the FILE_OPEN_ procedure call in the Guardian Procedure
Calls Reference Manual for a description of this field. The open_info_message structure is
shown open_info_message (page 72).
Errors
File-system errors as defined in <errno.h> are returned by this call. For a description of the
file-system error returned, type (from the TACL prompt):
> ERROR error-num
where error-num is the error number returned in errno.
196 Library Routines