X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fgeekos%2Fsocket.h;h=341c687522525ca2e048e6556ae8c5f005cbcb5b;hb=410089191febd4884a3a5a513052b0ae12aa7ebf;hp=a868851c10010effbc9d698a3564cf0d1b601c8a;hpb=032b20f0bfb2f1f057d69087151b9e49ce4c2776;p=palacios.git diff --git a/palacios/include/geekos/socket.h b/palacios/include/geekos/socket.h index a868851..341c687 100644 --- a/palacios/include/geekos/socket.h +++ b/palacios/include/geekos/socket.h @@ -1,18 +1,21 @@ #ifndef GEEKOS_SOCKET_H #define GEEKOS_SOCKET_H +#include +#include struct socket { int in_use; struct gen_queue send_queue; struct gen_queue recv_queue; + struct uip_conn *con; }; void init_network(); -int connect(const uint_t ip_addr); +int connect(const uchar_t ip_addr[4], ushort_t port); int close(const int sockfd); int recv(int sockfd, void * buf, uint_t len); int send(int sockfd, void * buf, uint_t len);