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:
Øyvind Harboe
2010-09-27 08:26:31 +02:00
parent a60a57d8ed
commit 5a41435e45
5 changed files with 15 additions and 19 deletions

View File

@@ -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;