Previous Topic: SENDTONext Topic: Notes


Parameters

Parameter

Description

socket-descriptor

Specifies the name of a fullword field containing the socket descriptor on which to do the send.

buffer

Specifies the name of the area containing the data to be sent.

buffer-length

Specifies the name of a fullword field containing the length of the buffer. buffer-length can be specified as an absolute expression.

flags

Specifies the name of a fullword field containing information on how the data is to be sent. The list of the different flags supported can be found in the MSGFLAGS DSECT generated by the #SOCKET TCPIPDEF macro call and in the SOCKET-MISC-DEFINITIONS record for other languages. For an explanation of flags that can be specified, see RECV function description.

sockaddr

Specifies the name of an area containing the sockaddr structure describing where data is to be sent. The format of this structure depends on the domain of the corresponding socket.

sockaddr-length

Specifies the name of a fullword field containing the length of sockaddr. Sockaddr-length can be specified as an absolute expression.

The maximum value for this parameter is domain dependent. If the domain is AF_INET, it is the length of the SOCKET-SOCKADDR-IN record (SIN#LEN for Assembler). If the domain is AF_INET6, it is the length of the SOCKET-SOCKADDR-IN6 record (SIN6#LEN for Assembler).

sent-length

Specifies the name of a fullword field in which the actual length of the data sent is returned.