protoverse

A metaverse protocol
git clone git://jb55.com/protoverse
Log | Files | Refs | README | LICENSE

serve.h (404B)


      1 
      2 #ifndef PROTOVERSE_SERVE_H
      3 #define PROTOVERSE_SERVE_H
      4 
      5 /*typedef int (*handle_packet_fn)(void *closure,
      6 				int sockfd,
      7 				struct sockaddr_in *from,
      8 				struct packet *packet);
      9 				*/
     10 #include "env.h"
     11 
     12 struct protoverse_server {
     13 	const char *bind;
     14 	int port;
     15 	struct env env;
     16 
     17 	/*
     18 	void *closure;
     19 	handle_packet_fn handle_packet;*/
     20 };
     21 
     22 
     23 
     24 int protoverse_serve(struct protoverse_server *server);
     25 
     26 #endif