Versions Compared

Key

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

Copy bytes from an application memory buffer into a socket to send to a remote socket. See function NetSock_TxData() for more information.

Files

net_bsd.h/net_bsd.c

Prototypes

Code Block

ssize_t  send (int      sock_id,
               void    *p_data,
              _size_t   data_len,
               int      flags);

ssize_t  sendto (         int         sock_id,
                          void       *p_data,
                         _size_t      data_len,
                          int         flags,
                 struct   sockaddr   *p_addr_remote,
                          socklen_t   addr_len);

Arguments

sock_id

Socket descriptor/handle identifier of socket to send data.

...

Length of destination address buffer (in octets).

Returned Value

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

...