9 lines
411 B
Text
9 lines
411 B
Text
common:
|
|
IP sockets => `man 7 ip`
|
|
UNIX sockets => `man 7 unix`
|
|
check both structs and implement both, then use #ifdef to selectively use one or the other
|
|
|
|
server:
|
|
create a struct for passing the pipe and the socketid to thread
|
|
create a global array containing structs: one per client, containing clientid, clientpipe, socketid
|
|
Dispatcher will need that and it will serve as shared memory
|