8 #include <sys/socket.h>
12 // #include "snap8051.h"
14 #define SOCKET_NAME "/tmp/ux_demo"
18 int ux_socket_connect(const char *name);
19 int ux_socket_listen(const char *name);
20 void *x_malloc(size_t size);
21 void *x_realloc(void *ptr, size_t size);
22 int fd_printf(int fd, const char *format, ...);
23 int send_packet(int fd, const char *buf, size_t len);
24 int recv_packet(int fd, char **buf, size_t *len);