diff options
author | marha <marha@users.sourceforge.net> | 2011-04-30 15:25:48 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-04-30 15:25:48 +0000 |
commit | 0402d388cb9803652c0f9a52ba7dcb6029fdd0b9 (patch) | |
tree | afd1b68edb9a74d5c87e63ea72d04b8301705d82 /mesalib/src/gallium/auxiliary/util/u_network.h | |
parent | c4ae0bb951bfb6061e7f0c492ba03de330137515 (diff) | |
download | vcxsrv-0402d388cb9803652c0f9a52ba7dcb6029fdd0b9.tar.gz vcxsrv-0402d388cb9803652c0f9a52ba7dcb6029fdd0b9.tar.bz2 vcxsrv-0402d388cb9803652c0f9a52ba7dcb6029fdd0b9.zip |
Added extra needed files
Diffstat (limited to 'mesalib/src/gallium/auxiliary/util/u_network.h')
-rw-r--r-- | mesalib/src/gallium/auxiliary/util/u_network.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mesalib/src/gallium/auxiliary/util/u_network.h b/mesalib/src/gallium/auxiliary/util/u_network.h new file mode 100644 index 000000000..5bf18c542 --- /dev/null +++ b/mesalib/src/gallium/auxiliary/util/u_network.h @@ -0,0 +1,24 @@ +
+#ifndef _U_NETWORK_H_
+#define _U_NETWORK_H_
+
+#include "pipe/p_compiler.h"
+
+#if defined(PIPE_SUBSYSTEM_WINDOWS_USER)
+# define PIPE_HAVE_SOCKETS
+#elif defined(PIPE_OS_LINUX) || defined(PIPE_OS_HAIKU) || defined(PIPE_OS_APPLE)
+# define PIPE_HAVE_SOCKETS
+#endif
+
+boolean u_socket_init(void);
+void u_socket_stop(void);
+void u_socket_close(int s);
+int u_socket_listen_on_port(uint16_t portnum);
+int u_socket_accept(int s);
+int u_socket_connect(const char *host, uint16_t port);
+int u_socket_send(int s, void *data, size_t size);
+int u_socket_peek(int s, void *data, size_t size);
+int u_socket_recv(int s, void *data, size_t size);
+void u_socket_block(int s, boolean block);
+
+#endif
|