2013-11-02 18:44:02 +01:00
|
|
|
#ifndef __NET
|
|
|
|
# define __NET
|
|
|
|
|
2013-11-02 17:54:12 +01:00
|
|
|
#include <sys/socket.h> // struct sockaddr
|
2013-11-02 19:21:09 +01:00
|
|
|
#include "misc.h" // prog_info
|
|
|
|
#include "msg.h" // message serialization
|
|
|
|
#include "display.h" // callback
|
2013-11-02 17:54:12 +01:00
|
|
|
|
2013-11-02 17:34:02 +01:00
|
|
|
void *get_in_addr(struct sockaddr *sa);
|
2013-11-02 17:54:12 +01:00
|
|
|
int run_server(const struct prog_info *pinfo);
|
2013-11-02 19:21:09 +01:00
|
|
|
int run_client(const struct prog_info *pinfo,void(*framecallback)(const struct message *));
|
2013-11-02 17:54:12 +01:00
|
|
|
|
2013-11-02 18:44:02 +01:00
|
|
|
#endif
|