#include <sipc.h>
Public Member Functions | |
| int | start (int portNum) |
| Start up an IPC listener. | |
| void | fdFillSet (fd_set &) |
| Place all descriptors that need to be polled in a fd select() set. | |
| int | getListenfd () |
| int | getTopfd () |
| void | pollAndHandle (fd_set &read, fd_set &write, fd_set &except) |
| Handle the results of a select() or poll(). | |
| void | freeCon (IpcConnectType *) |
| Free out a connection object. | |
| void | addCon (IpcConnectType *) |
| Add a logical connection item to the 'links' listing. | |
| void | delCon (IpcConnectType *) |
| Remove a connection item from the 'links' listing. | |
Private Member Functions | |
| int | ReadPackets (IpcConnectType *) |
| Read packets from a connection and buffer them for processing. | |
| void | authMessage (IpcConnectType *, parse_t *) |
| Handle an authentication message. | |
| void | authSysMessage (IpcConnectType *, parse_t *) |
| Handle AUTH SYSTEM. | |
| void | authObjMessage (IpcConnectType *, parse_t *) |
| Handle AUTH OBJECT. | |
| void | queryMessage (IpcConnectType *, parse_t *) |
| Handle a query message. | |
| void | querySysMessage (IpcConnectType *, parse_t *) |
| Handle QUERY SYSTEM. | |
| void | queryObjMessage (IpcConnectType *, parse_t *) |
| Handle QUERY OBJECT. | |
| int | queryRegNickMessage (RegNickList *, const char *, IpcConnectType *, parse_t *) |
| Handle QUERY OBJECT RNICK. | |
| void | makeMessage (IpcConnectType *, parse_t *) |
| Handle MAKE OBJECT. | |
| void | alterMessage (IpcConnectType *, parse_t *) |
| Handle an alter message. | |
| void | logMessage (IpcConnectType *, parse_t *) |
| Handle a log message. | |
| void | alterObjMessage (IpcConnectType *, parse_t *) |
| Handle ALTER OBJECT. | |
| int | alterRegNickMessage (RegNickList *, const char *, IpcConnectType *, parse_t *) |
| Handle ALTER OBJECT RNICK. | |
Private Attributes | |
| int | listenDesc |
| Descriptor of listener. | |
| int | topFd |
| Highest fd of this IPC unit. | |
| IpcConnectType * | links |
| Connected clients. | |
Manages IPC listeners and connections
Definition at line 261 of file sipc.h.
|
|
Add a logical connection item to the 'links' listing.
Definition at line 653 of file sipc.cc. References links, and IpcConnectType::next. Referenced by pollAndHandle(). |
|
|
Remove a connection item from the 'links' listing.
Definition at line 664 of file sipc.cc. References IpcConnectType::fd, links, listenDesc, IpcConnectType::next, and topFd. Referenced by pollAndHandle(). |
|
|
Place all descriptors that need to be polled in a fd select() set.
Definition at line 631 of file sipc.cc. References IpcConnectType::fd, links, listenDesc, and IpcConnectType::next. Referenced by main(). |
|
||||||||||||||||
|
Handle the results of a select() or poll().
Definition at line 775 of file sipc.cc. References addCon(), IpcConnectType::addr, alterMessage(), authMessage(), IpcConnectType::buf, delCon(), doNonBlock(), IpcConnectType::fd, freeCon(), IpcConnectType::fWriteLn(), links, listenDesc, logMessage(), makeMessage(), myname, IpcConnectType::next, oalloc(), IpcConnectType::objType, parse_getarg(), IpcConnectType::pass, IpcQ::pop(), queryMessage(), ReadPackets(), IpcConnectType::s, IpcConnectType::sWrite(), topFd, and IpcConnectType::user. Referenced by main(). |
|
|
Read packets from a connection and buffer them for processing.
Definition at line 720 of file sipc.cc. References IpcConnectType::buf, IpcConnectType::fd, IpcQ::shove(), and strncpyzt. Referenced by pollAndHandle(). |
|
|
Start up an IPC listener.
Definition at line 585 of file sipc.cc. References doNonBlock(), listenDesc, and topFd. Referenced by main(). |