Files
flexnbd-c/src/client.h

23 lines
422 B
C
Raw Normal View History

#ifndef CLIENT_H
#define CLIENT_H
2012-06-08 18:03:41 +01:00
struct client {
int socket;
int fileno;
char* mapped;
2012-06-07 11:44:19 +01:00
struct self_pipe * stop_signal;
struct server* serve; /* FIXME: remove above duplication */
};
void* client_serve(void* client_uncast);
2012-06-07 11:44:19 +01:00
struct client * client_create( struct server * serve, int socket );
void client_destroy( struct client * client );
void client_signal_stop( struct client * client );
#endif