Versions Compared

Key

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

...

net_bsd.h/net_bsd.c

Prototype

Code Block

int  accept (        int         sock_id,
             struct  sockaddr   *p_addr_remote,
                     socklen_t  *p_addr_len);

Arguments

sock_id

Socket description/handle identifier of listen socket.

...

Socket descriptor/handle identifier of new accepted socket, if no error(s).

-1, otherwise.