xref: /third_party/mesa3d/src/gallium/auxiliary/util/u_network.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/mesa3d/src/gallium/auxiliary/util/
1bf215546Sopenharmony_ci
2bf215546Sopenharmony_ci#ifndef _U_NETWORK_H_
3bf215546Sopenharmony_ci#define _U_NETWORK_H_
4bf215546Sopenharmony_ci
5bf215546Sopenharmony_ci#include "pipe/p_compiler.h"
6bf215546Sopenharmony_ci
7bf215546Sopenharmony_ci#if defined(PIPE_OS_WINDOWS) || defined(PIPE_OS_UNIX)
8bf215546Sopenharmony_ci#  define PIPE_HAVE_SOCKETS
9bf215546Sopenharmony_ci#endif
10bf215546Sopenharmony_ci
11bf215546Sopenharmony_ciboolean u_socket_init(void);
12bf215546Sopenharmony_civoid u_socket_stop(void);
13bf215546Sopenharmony_civoid u_socket_close(int s);
14bf215546Sopenharmony_ciint u_socket_listen_on_port(uint16_t portnum);
15bf215546Sopenharmony_ciint u_socket_accept(int s);
16bf215546Sopenharmony_ciint u_socket_connect(const char *host, uint16_t port);
17bf215546Sopenharmony_ciint u_socket_send(int s, void *data, size_t size);
18bf215546Sopenharmony_ciint u_socket_peek(int s, void *data, size_t size);
19bf215546Sopenharmony_ciint u_socket_recv(int s, void *data, size_t size);
20bf215546Sopenharmony_civoid u_socket_block(int s, boolean block);
21bf215546Sopenharmony_ci
22bf215546Sopenharmony_ci#endif
23

Indexes created Thu Nov 07 10:32:03 CST 2024