server: split file descriptors in in/out fd's
pipes have different fd's for in/out. This makes the code more orthogonal and prepares for adding pipes. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
@@ -41,6 +41,7 @@ enum connection_type
|
||||
struct connection
|
||||
{
|
||||
int fd;
|
||||
int fd_out; /* When using pipes we're writing to a different fd */
|
||||
struct sockaddr_in sin;
|
||||
struct command_context *cmd_ctx;
|
||||
struct service *service;
|
||||
|
||||
Reference in New Issue
Block a user