![]() ![]() | ![]() |
File: [local] / OpenXM / src / kan96xx / plugin / sm1Socket.h (download)
Revision 1.5, Thu Oct 24 02:12:35 2002 UTC (21 years, 10 months ago) by takayama
httpd can handle the "connection closed" situation during computation and during waiting data from the client. Added new function (sm1.socket) (accpet2) for using as a super server. (for future use.) |
/* $OpenXM: OpenXM/src/kan96xx/plugin/sm1Socket.h,v 1.5 2002/10/24 02:12:35 takayama Exp $ */ struct object KsocketOpen(struct object obj); /* [ optional integer port default 0, optional string host default localhost] [ integer socketid, integer port ] socket, bind, listen */ struct object KsocketConnect(struct object obj); /* [ integer port, optional string host default localhost] [ integer socketid, integer port ] socket, connect */ struct object KsocketAccept(struct object obj); /* [ integer socketid ] [ integer newsocketid ] accept */ struct object KsocketAccept2(struct object obj); /* [ integer socketid ] [ integer newsocketid ] accept. It does not close the listenning socket. */ int KsocketSelect0(int fd,int timeout); struct object KsocketSelect(struct object obj); /* [ integer socketid optional integer timeout default 0] integer true or false */ struct object KsocketSelectMulti(struct object obj); /* [ [integer socketid1, integer socketid2, ...] optional integer timeout default 0] [ result1, result2, ....] */ struct object KsocketRead(struct object obj); /* [ integer socketid ] string data */ struct object KsocketReadHTTP(struct object obj); /* [ integer socketid ] string data */ struct object KsocketWrite(struct object obj); /* [ integer socketid, string data ] integer */ struct object KsocketClose(struct object obj); /* [ integer socketid ] integer ok or error */ struct object Kplugin_sm1Socket(char *key,struct object obj); struct object KsocketGetHostName(void); /* void string hostname */