README-lib
1The *.c files and ncidlib.h file contain the following functions:
2
3 logmsg.[ch]:
4 void logMsg(int level, const char * fmt, ...)
5
6 strdate.[ch]:
7 char *strdate(int format)
8
9 dopid.[ch]:
10 int doPID(pid_t *pid, char *pidfile)
11
12 hexdump.[ch]:
13 void hexdump(void *ptr, int buflen)
14
15 conf.[ch]:
16 int doConf()
17 char *getWord(char *nameptr, char *inptr, char *wdptr, int lc);
18 int findWord(char *wdptr),
19 int findSend()char *wdptr;
20 void configError(char *file, int lc, char *word, char *mesg);
21
22 safesend.[ch]:
23 safeSend() and its pieces for delivery of messages on TCP streams
24 void initQueuedMsg(int maxconnect);
25 void safeSend(int pos, const char * msg );
26 void disconnectClient(int pos);
27 void QueuedMsg_begin_connect(int pos);
28 void handle_incoming_message(int pos, char * um, int length);
29 void send_blocked(int pos);
30
31 ncid_poll.[ch]:
32 (for Mac OS only)
33 int poll(struct pollfd * pfds, unsigned int npfds, int ptimeout);
34
35 strmatch.[ch]
36 int strmatch(const char * string, const char * value, void * regexp);
37
38
39