Versions Compared

Key

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

...

net_bsd.h/net_bsd.c

Prototypes

Code Block

ssize_t  recv (int      sock_id,
               void    *p_data_buf,
              _size_t   data_buf_len,
               int      flags);

 
ssize_t  recvfrom (         int         sock_id,
                            void       *p_data_buf,
                           _size_t      data_buf_len,
                            int         flags,
                   struct   sockaddr   *p_addr_remote,
                            socklen_t  *p_addr_len);

Arguments

sock_id

Socket descriptor/handle identifier of socket to receive data.

...

0, if socket connection closed.

-1, otherwise.