Home
last modified time | relevance | path

Searched refs:cutils_socket_t (Results 1 – 9 of 9) sorted by relevance

/system/core/libcutils/
Dsockets_test.cpp34 static void TestConnectedSockets(cutils_socket_t server, cutils_socket_t client, in TestConnectedSockets()
78 cutils_socket_t server; in TEST()
99 cutils_socket_t server = socket_inaddr_any_server(0, SOCK_DGRAM); in TEST()
100 cutils_socket_t client = socket_network_client( in TEST()
108 cutils_socket_t server = socket_inaddr_any_server(0, SOCK_STREAM); in TEST()
111 cutils_socket_t client = socket_network_client( in TEST()
113 cutils_socket_t handler = accept(server, nullptr, nullptr); in TEST()
121 cutils_socket_t server = socket_inaddr_any_server(0, SOCK_DGRAM); in TEST()
122 cutils_socket_t client = socket_network_client( in TEST()
130 cutils_socket_t server = socket_inaddr_any_server(0, SOCK_STREAM); in TEST()
[all …]
Dsockets_windows.cpp53 int socket_close(cutils_socket_t sock) { in socket_close()
57 ssize_t socket_send_buffers(cutils_socket_t sock, in socket_send_buffers()
Dsockets.cpp34 int socket_get_local_port(cutils_socket_t sock) { in socket_get_local_port()
Dsockets_unix.cpp34 ssize_t socket_send_buffers(cutils_socket_t sock, in socket_send_buffers()
/system/core/libcutils/include/cutils/
Dsockets.h32 typedef SOCKET cutils_socket_t; typedef
39 typedef int cutils_socket_t; typedef
87 cutils_socket_t socket_network_client(const char* host, int port, int type);
95 cutils_socket_t socket_inaddr_any_server(int port, int type);
103 int socket_close(cutils_socket_t sock);
108 int socket_get_local_port(cutils_socket_t sock);
131 ssize_t socket_send_buffers(cutils_socket_t sock,
/system/core/libcutils/include_vndk/cutils/
Dsockets.h32 typedef SOCKET cutils_socket_t; typedef
39 typedef int cutils_socket_t; typedef
87 cutils_socket_t socket_network_client(const char* host, int port, int type);
95 cutils_socket_t socket_inaddr_any_server(int port, int type);
103 int socket_close(cutils_socket_t sock);
108 int socket_get_local_port(cutils_socket_t sock);
131 ssize_t socket_send_buffers(cutils_socket_t sock,
/system/core/fastboot/
Dsocket.cpp34 Socket::Socket(cutils_socket_t sock) : sock_(sock) {} in Socket()
114 UdpSocket(Type type, cutils_socket_t sock);
127 UdpSocket::UdpSocket(Type type, cutils_socket_t sock) : Socket(sock) { in UdpSocket()
172 explicit TcpSocket(cutils_socket_t sock) : Socket(sock) {} in TcpSocket()
241 cutils_socket_t handler = accept(sock_, nullptr, nullptr); in Accept()
251 cutils_socket_t sock = socket_network_client(host.c_str(), port, SOCK_DGRAM); in NewClient()
256 cutils_socket_t sock = socket_network_client(host.c_str(), port, SOCK_STREAM); in NewClient()
271 cutils_socket_t sock = socket_inaddr_any_server(port, SOCK_DGRAM); in NewServer()
276 cutils_socket_t sock = socket_inaddr_any_server(port, SOCK_STREAM); in NewServer()
Dsocket.h106 explicit Socket(cutils_socket_t sock);
113 cutils_socket_t sock_ = INVALID_SOCKET;
118 std::function<ssize_t(cutils_socket_t, cutils_socket_buffer_t*, size_t)>
Dsocket_test.cpp185 cutils_socket_t /*cutils_sock*/, cutils_socket_buffer_t* sent_buffers, in TEST()
244 cutils_socket_t /*cutils_sock*/, cutils_socket_buffer_t* buffers, in TEST()