*** empty log message ***

This commit is contained in:
cvs
2000-03-31 07:51:28 +00:00
parent 72589129c3
commit 24eb75d7d3
24 changed files with 1184 additions and 670 deletions

View File

@@ -1,3 +1,6 @@
#ifndef _SERVER_H_
#define _SERVER_H_
#include "coc.h"
struct CocClient { struct CocClient *next; int fd; int mode; char cmd[80]; char res[80]; };
@@ -10,7 +13,7 @@ int CocHandle1Request(int tmo_msec, int fd);
handle hetwork requests.
return value: <0: error
=0: error
=0: timeout
=1: event on fd
=2: variable was changed
=3: other network request treated
@@ -20,10 +23,10 @@ int CocHandle1Request(int tmo_msec, int fd);
For CocHandleRequests:
if fd=0: returns when a network request has changed a variable,
or when timeout has expired
or when timeout has expired (result is 0 or 2)
if fd>0: returns when an read event is pending on fd
or when timeout has expired
or when timeout has expired (result is 0 or 1)
*/
@@ -33,3 +36,5 @@ struct CocClient *CocGetNextCmd(void);
*/
void CocCloseServer(void);
#endif /* _SERVER_H_ */