X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_socket.h;h=92a916dd1b532f55c3bc3876b070e28bff4c1e3c;hp=bd8868272b559ec83c30075b110c1ab2fce16b22;hb=3e574cb7846755c126d1734737b4efad99dad091;hpb=362bcedc1da3725afc621c93d26d74f30c796354 diff --git a/palacios/include/palacios/vmm_socket.h b/palacios/include/palacios/vmm_socket.h index bd88682..92a916d 100644 --- a/palacios/include/palacios/vmm_socket.h +++ b/palacios/include/palacios/vmm_socket.h @@ -203,7 +203,7 @@ void v3_zero_sockset(struct v3_sock_set * sock_set); // clears all is_set var struct v3_socket_hooks { // Socket creation routines - V3_SOCK (*tcp_socket)(const int bufsize, const int nodelay, const int nonblocking); +xsxsxsxsxs V3_SOCK (*tcp_socket)(const int bufsize, const int nodelay, const int nonblocking); V3_SOCK (*udp_socket)(const int bufsize, const int nonblocking); // Socket Destruction @@ -211,8 +211,10 @@ struct v3_socket_hooks { // Network Server Calls int (*bind_socket)(const V3_SOCK sock, const int port); + + int (*listen)(const V3_SOCK sock, int backlog); - int (*accept)(const V3_SOCK const sock, unsigned int * remote_ip); + V3_SOCK (*accept)(const V3_SOCK const sock, unsigned int * remote_ip, unsigned int * port); // This going to suck int (*select)(struct v3_sock_set * rset, \ struct v3_sock_set * wset, \ @@ -240,7 +242,7 @@ struct v3_socket_hooks { }; -void V3_Init_Socket(struct v3_socket_hooks * hooks); +extern void V3_Init_Sockets(struct v3_socket_hooks * hooks); #endif