Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


*** empty log message ***
[palacios.git] / palacios / include / geekos / socket.h
1 #ifndef GEEKOS_SOCKET_H
2 #define GEEKOS_SOCKET_H
3
4 #include <geekos/queue.h>
5
6
7 struct socket {
8   int in_use;
9   struct gen_queue send_queue;
10   struct gen_queue recv_queue;
11 };
12
13
14
15 void init_network();
16
17 int connect(const uint_t ip_addr);
18 int close(const int sockfd);
19 int recv(int sockfd, void * buf, uint_t len);
20 int send(int sockfd, void * buf, uint_t len);
21
22 #endif