48 int fd; |
48 int fd; |
49 struct sockaddr_in address; |
49 struct sockaddr_in address; |
50 HttpListener *listener; |
50 HttpListener *listener; |
51 SessionHandler *session_handler; |
51 SessionHandler *session_handler; |
52 SSL *ssl; |
52 SSL *ssl; |
53 long ssl_error; |
53 int ssl_error; |
54 int (*read)(Connection *conn, void *buf, int len); |
54 int (*read)(Connection *conn, void *buf, int len); |
55 int (*write)(Connection *conn, const void *buf, int len); |
55 int (*write)(Connection *conn, const void *buf, int len); |
56 void (*close)(Connection *conn); |
56 void (*close)(Connection *conn); |
57 }; |
57 }; |
58 |
58 |