Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

net_bsd.h/net_bsd.c

Prototypes

Arguments

sock_id

Socket descriptor/handle identifier of socket to send data.

p_data

Pointer to application data to send.

data_len

Length of application data to send (in octets).

flags

Flags to select send options; bit-field flags logically OR'd:

0, No socket flags selected.

MSG_DONTWAIT, Send socket data without blocking.

p_addr_remote

Pointer to the destination address buffer; required for datagram sockets, optional for stream sockets.

addr_len

Length of destination address buffer (in octets).

Returned Value

The number of positive data octets sent if no error(s).

0, if socket connection closed.

-1, otherwise.