Changeset 374:e3f42f05cdfb in roaraudio
- Timestamp:
- 08/05/08 15:21:03 (16 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/socket.h
r230 r374 17 17 #define ROAR_SOCKET_TYPE_PIPE ROAR_SOCKET_TYPE_FORK 18 18 #define ROAR_SOCKET_TYPE_FILE 4 19 #define ROAR_SOCKET_TYPE_UDP 5 19 20 20 21 #define ROAR_SOCKET_TYPE_MAX 4 … … 30 31 int roar_socket_connect (char * host, int port); 31 32 32 int roar_socket_new_tcp (void); 33 int roar_socket_new_unix (void); 33 int roar_socket_new_tcp (void); 34 int roar_socket_new_udp (void); 35 int roar_socket_new_unix (void); 34 36 int roar_socket_open (int mode, int type, char * host, int port); 35 37 int roar_socket_open_fork (int mode, char * host, int port); -
libroar/socket.c
r234 r374 21 21 phi@ph7:libroar $ IPTOS_LOWDELAY 22 22 */ 23 24 setsockopt(fh, IPPROTO_IP, IP_TOS, &opt, sizeof(int)); 25 26 return fh; 27 } 28 29 int roar_socket_new_udp (void) { 30 int fh; 31 int opt = IPTOS_LOWDELAY; 32 33 fh = socket(PF_INET, SOCK_DGRAM, 0); 23 34 24 35 setsockopt(fh, IPPROTO_IP, IP_TOS, &opt, sizeof(int));
Note: See TracChangeset
for help on using the changeset viewer.