Changeset 5527:4d22e732b1c9 in roaraudio
- Timestamp:
- 06/11/12 19:11:50 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/socket.c
r5419 r5527 41 41 42 42 static int roar_socket_open_file (int mode, const char * host, int port); 43 44 #ifdef ROAR_SUPPORT_PROXY 43 45 static int roar_socket_open_proxy (int mode, int type, const char * host, int port, const char * proxy_type); 44 46 … … 50 52 static int roar_socket_open_http (int mode, int fh, const char * host, int port, const char * user, const char * pw, const char * opts); 51 53 54 #ifdef ROAR_HAVE_BIN_SS 52 55 static int roar_socket_open_ssh (int mode, int fh, const char * host, int port, const char * user, const char * pw, const char * opts); 56 #endif 57 #endif 53 58 54 59 … … 67 72 #endif 68 73 74 #ifdef ROAR_HAVE_LIBDNET 69 75 static int roar_socket_decnet_set_timeout (int fh, time_t sec, int_least32_t usec) { 70 #ifdef ROAR_HAVE_LIBDNET71 76 struct timeval timeout = {sec, usec}; 72 77 73 78 return setsockopt(fh, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(timeout)); 74 #else 75 return -1; 76 #endif 77 } 79 } 80 #endif 78 81 79 82 static int roar_socket_set_tos(int fh) { … … 415 418 416 419 420 #ifdef ROAR_HAVE_LIBDNET 417 421 static int roar_socket_listen_decnet (const char * object, int num) { 418 #ifdef ROAR_HAVE_LIBDNET419 422 int fh = roar_socket_new(ROAR_SOCKET_TYPE_DECNET); 420 423 struct sockaddr_dn bind_sockaddr; … … 461 464 462 465 return fh; 463 #else 464 roar_err_set(ROAR_ERROR_NOSYS); 465 return -1; 466 #endif 467 } 466 } 467 #endif 468 468 469 469 const char * roar_socket_get_local_nodename(void) {
Note: See TracChangeset
for help on using the changeset viewer.