Logo Search packages:      
Sourcecode: sofia-sip version File versions

SOFIAPUBFUN su_socket_t su_socket ( int  af,
int  socktype,
int  proto 

Create an endpoint for communication.

Definition at line 56 of file su.c.

References su_socket().

Referenced by init_test(), stun_obtain_shared_secret(), stun_test_lifetime(), su_socket(), test_sockaddr(), and tport_base_connect().

  su_socket_t s = socket(af, socktype, proto);
  if (s != INVALID_SOCKET && su_socket_close_on_exec) {
    fcntl(s, F_SETFD, FD_CLOEXEC); /* Close on exec */
  return s;

Generated by  Doxygen 1.6.0   Back to index