version 1.8, 2000/10/06 06:05:23 |
version 1.11, 2000/12/05 01:24:55 |
|
|
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* $OpenXM: OpenXM_contrib2/asir2000/io/sio.c,v 1.7 2000/09/23 00:57:43 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/io/sio.c,v 1.10 2000/11/15 01:20:27 noro Exp $ |
*/ |
*/ |
#if INET |
|
#include "ca.h" |
#include "ca.h" |
#include "setjmp.h" |
#include "setjmp.h" |
#include "ox.h" |
#include "ox.h" |
#if defined(VISUAL) |
#if defined(VISUAL) |
#include <winsock.h> |
#include <winsock2.h> |
#else |
#else |
#include <sys/time.h> |
#include <sys/time.h> |
#include <sys/uio.h> |
#include <sys/uio.h> |
|
|
|
|
extern int little_endian; |
extern int little_endian; |
|
|
|
int I_am_server; |
struct IOFP iofp[MAXIOFP]; |
struct IOFP iofp[MAXIOFP]; |
|
|
#if !defined(_PA_RISC1_1) |
#if !defined(_PA_RISC1_1) |
Line 285 char *host,*port_str; |
|
Line 285 char *host,*port_str; |
|
return s; |
return s; |
} |
} |
|
|
|
#if 0 |
close_allconnections() |
close_allconnections() |
{ |
{ |
int s; |
int s; |
|
|
free_iofp(s); |
free_iofp(s); |
} |
} |
} |
} |
|
#else |
|
close_allconnections() |
|
{ |
|
shutdown_all(); |
|
} |
|
#endif |
|
|
free_iofp(s) |
free_iofp(s) |
int s; |
int s; |
|
|
return i; |
return i; |
return -1; |
return -1; |
} |
} |
#endif /* INET */ |
|