[BACK]Return to mysocket.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_toolkit

Diff for /OpenXM/src/ox_toolkit/mysocket.c between version 1.8 and 1.9

version 1.8, 2003/01/13 12:03:12 version 1.9, 2015/08/27 03:03:33
Line 1 
Line 1 
 /* -*- mode: C; coding: euc-japan -*- */  /* -*- mode: C; coding: euc-japan -*- */
 /* $OpenXM: OpenXM/src/ox_toolkit/mysocket.c,v 1.7 2003/01/11 11:42:31 ohara Exp $ */  /* $OpenXM: OpenXM/src/ox_toolkit/mysocket.c,v 1.8 2003/01/13 12:03:12 ohara Exp $ */
 /*  /*
 Q: How to get a local port number?  Q: How to get a local port number?
 A: You do setsockopt() to set options and do socket(), bind().  A: You do setsockopt() to set options and do socket(), bind().
Line 13  Reference
Line 13  Reference
   
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <unistd.h>  
 #include <errno.h>  #include <errno.h>
 #include <netdb.h>  
 #include <string.h>  #include <string.h>
   #include <fcntl.h>
   
   #if defined(_MSC_VER) || defined(__MINGW32__)
   #include <winsock2.h>
   #else
   #include <unistd.h>
   #include <netdb.h>
 #include <netinet/in.h>  #include <netinet/in.h>
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/socket.h>  #include <sys/socket.h>
 #include <fcntl.h>  
   
 #if defined(__sun__)  #if defined(__sun__)
 #include <arpa/inet.h>  #include <arpa/inet.h>
   #endif
 #endif  #endif
   
 #include "mysocket.h"  #include "mysocket.h"

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>