Changeset 1085:fe83ee077214 in roaraudio for libroar/socket.c
- Timestamp:
- 12/28/08 19:32:14 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/socket.c
r1084 r1085 176 176 177 177 int roar_socket_nonblock(int fh, int state) { 178 #ifndef ROAR_TARGET_WIN32 178 179 int flags; 179 180 … … 197 198 ROAR_DBG("roar_socket_nonblock(fh=%i, state=%i) = 0", fh, state); 198 199 return 0; 200 #else 201 ROAR_WARN("roar_socket_nonblock(*): no nonblocking IO support on win32, use a real OS"); 202 return -1; 203 #endif 199 204 } 200 205 201 206 int roar_socket_dup_udp_local_end (int fh) { 207 #ifndef ROAR_TARGET_WIN32 202 208 int n = -1; 203 209 int flags = -1; … … 237 243 238 244 return n; 245 #else 246 ROAR_WARN("roar_socket_dup_udp_local_end(*): this function is not supported on win32, use a real OS"); 247 return -1; 248 #endif 239 249 } 240 250 … … 242 252 #define _SCMR_CONTROLLEN (sizeof(struct cmsghdr) + sizeof(int)) 243 253 int roar_socket_send_fh (int sock, int fh, char * mes, size_t len) { 254 #ifndef ROAR_TARGET_WIN32 244 255 struct iovec iov[1]; 245 256 struct msghdr msg; … … 275 286 276 287 return sendmsg(sock, &msg, 0); 288 #else 289 ROAR_ERR("roar_socket_send_fh(*): There is no UNIX Domain Socket support in win32, download a real OS."); 290 return -1; 291 #endif 277 292 } 278 293 279 294 int roar_socket_recv_fh (int sock, char * mes, size_t * len) { 295 #ifndef ROAR_TARGET_WIN32 280 296 struct iovec iov[1]; 281 297 struct msghdr msg; … … 310 326 311 327 return *(int *)CMSG_DATA(cmptr); 328 #else 329 ROAR_ERR("roar_socket_recv_fh(*): There is no UNIX Domain Socket support in win32, download a real OS."); 330 return -1; 331 #endif 312 332 } 313 333
Note: See TracChangeset
for help on using the changeset viewer.