2013-11-02 18:44:02 +01:00
|
|
|
#ifndef __NET
|
2013-11-02 21:16:12 +01:00
|
|
|
#define __NET
|
2013-11-02 18:44:02 +01:00
|
|
|
|
2013-11-02 21:16:12 +01:00
|
|
|
#include <sys/socket.h> // struct sockaddr
|
|
|
|
#include "misc.h" // prog_info
|
|
|
|
#include "msg.h" // message serialization
|
2013-11-02 21:55:33 +01:00
|
|
|
#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 22:54:28 +01:00
|
|
|
int run_server(const struct prog_info *pinfo, char *img, int w, int h);
|
2013-11-02 20:57:08 +01:00
|
|
|
int run_client(const struct prog_info *pinfo,void(*framecallback)(const struct message *, const struct prog_info *));
|
2013-11-02 17:54:12 +01:00
|
|
|
|
2013-11-02 18:44:02 +01:00
|
|
|
#endif
|
2013-11-02 21:16:12 +01:00
|
|
|
|