#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 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); #endif