version 1.5, 2002/10/17 13:40:29 |
version 1.6, 2002/10/20 07:58:18 |
|
|
/* $OpenXM: OpenXM/src/kan96xx/plugin/sm1Socket.c,v 1.4 2001/08/12 03:13:36 takayama Exp $ */ |
/* $OpenXM: OpenXM/src/kan96xx/plugin/sm1Socket.c,v 1.5 2002/10/17 13:40:29 takayama Exp $ */ |
/* msg0s.c */ |
/* msg0s.c */ |
#include <stdio.h> |
#include <stdio.h> |
#include <sys/types.h> |
#include <sys/types.h> |
|
|
|
|
extern int Quiet; |
extern int Quiet; |
static void errorMsg1s(char *s); |
static void errorMsg1s(char *s); |
|
#define MAX_LISTEN_QUEUE 3 |
|
|
/* [(sm1.socket) (open) [optional integer port, optional string name] ] extension ; */ |
/* [(sm1.socket) (open) [optional integer port, optional string name] ] extension ; */ |
struct object KsocketOpen(struct object obj) { |
struct object KsocketOpen(struct object obj) { |
Line 78 struct object KsocketOpen(struct object obj) { |
|
Line 79 struct object KsocketOpen(struct object obj) { |
|
} |
} |
|
|
|
|
if (listen(s_waiting,1) < 0) { |
if (listen(s_waiting,MAX_LISTEN_QUEUE) < 0) { |
errorMsg1s("Listen failed"); |
errorMsg1s("Listen failed"); |
} |
} |
/* |
/* |