Annotation of OpenXM/src/kan96xx/plugin/sm1Socket.h, Revision 1.5
1.5 ! takayama 1: /* $OpenXM: OpenXM/src/kan96xx/plugin/sm1Socket.h,v 1.4 2002/10/24 01:05:05 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 */
1.5 ! takayama 14: struct object KsocketAccept2(struct object obj);
! 15: /* [ integer socketid ]
! 16: [ integer newsocketid ]
! 17: accept. It does not close the listenning socket. */
1.1 maekawa 18: int KsocketSelect0(int fd,int timeout);
19: struct object KsocketSelect(struct object obj);
20: /* [ integer socketid optional integer timeout default 0]
21: integer true or false
22: */
23: struct object KsocketSelectMulti(struct object obj);
24: /* [ [integer socketid1, integer socketid2, ...]
25: optional integer timeout default 0]
26: [ result1, result2, ....]
27: */
28: struct object KsocketRead(struct object obj);
1.3 takayama 29: /* [ integer socketid ]
30: string data
31: */
32: struct object KsocketReadHTTP(struct object obj);
1.1 maekawa 33: /* [ integer socketid ]
34: string data
35: */
36: struct object KsocketWrite(struct object obj);
37: /* [ integer socketid, string data ]
38: integer
39: */
40: struct object KsocketClose(struct object obj);
41: /* [ integer socketid ]
42: integer ok or error
43: */
44:
45: struct object Kplugin_sm1Socket(char *key,struct object obj);
1.4 takayama 46:
47: struct object KsocketGetHostName(void);
48: /* void
49: string hostname
50: */
1.1 maekawa 51:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>