Annotation of OpenXM/src/kan96xx/plugin/sm1Socket.h, Revision 1.4
1.4 ! takayama 1: /* $OpenXM: OpenXM/src/kan96xx/plugin/sm1Socket.h,v 1.3 2002/10/21 00:37:00 takayama Exp $ */
1.1 maekawa 2: struct object KsocketOpen(struct object obj);
3: /* [ optional integer port default 0, optional string host default localhost]
4: [ integer socketid, integer port ]
5: socket, bind, listen */
6: struct object KsocketConnect(struct object obj);
7: /* [ integer port, optional string host default localhost]
8: [ integer socketid, integer port ]
9: socket, connect */
10: struct object KsocketAccept(struct object obj);
11: /* [ integer socketid ]
12: [ integer newsocketid ]
13: accept */
14: int KsocketSelect0(int fd,int timeout);
15: struct object KsocketSelect(struct object obj);
16: /* [ integer socketid optional integer timeout default 0]
17: integer true or false
18: */
19: struct object KsocketSelectMulti(struct object obj);
20: /* [ [integer socketid1, integer socketid2, ...]
21: optional integer timeout default 0]
22: [ result1, result2, ....]
23: */
24: struct object KsocketRead(struct object obj);
1.3 takayama 25: /* [ integer socketid ]
26: string data
27: */
28: struct object KsocketReadHTTP(struct object obj);
1.1 maekawa 29: /* [ integer socketid ]
30: string data
31: */
32: struct object KsocketWrite(struct object obj);
33: /* [ integer socketid, string data ]
34: integer
35: */
36: struct object KsocketClose(struct object obj);
37: /* [ integer socketid ]
38: integer ok or error
39: */
40:
41: struct object Kplugin_sm1Socket(char *key,struct object obj);
1.4 ! takayama 42:
! 43: struct object KsocketGetHostName(void);
! 44: /* void
! 45: string hostname
! 46: */
1.1 maekawa 47:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>