Searched defs:SyncSocket (Results 1 - 6 of 6) sorted by relevance

/external/qemu/android/
H A Dsync-utils.h29 typedef struct SyncSocket SyncSocket; typedef in typeref:struct:SyncSocket
40 * Initialized SyncSocket descriptor on success, or NULL on failure.
42 SyncSocket* syncsocket_connect(int fd, SockAddress* sockaddr, int timeout);
51 * Initialized SyncSocket descriptor on success, or NULL on failure.
53 SyncSocket* syncsocket_init(int fd);
56 * Closes SyncSocket descriptor obtained from syncsocket_connect routine.
58 * ssocket - SyncSocket descriptor obtained from syncsocket_connect routine.
60 void syncsocket_close(SyncSocket* ssocket);
63 * Frees memory allocated for SyncSocket descripto
[all...]
H A Dsync-utils.c32 struct SyncSocket { struct
40 SyncSocket*
43 SyncSocket* sync_socket;
53 SyncSocket*
58 SyncSocket* sync_socket = NULL;
87 // We're now connected. Lets initialize SyncSocket instance
89 sync_socket = malloc(sizeof(SyncSocket));
102 syncsocket_close(SyncSocket* ssocket)
114 syncsocket_free(SyncSocket* ssocket)
125 syncsocket_start_read(SyncSocket* ssocke
[all...]
/external/chromium_org/base/
H A Dsync_socket_nacl.cc16 const SyncSocket::Handle SyncSocket::kInvalidHandle = -1;
18 SyncSocket::SyncSocket() : handle_(kInvalidHandle) { function in class:base::SyncSocket
21 SyncSocket::~SyncSocket() {
26 bool SyncSocket::CreatePair(SyncSocket* socket_a, SyncSocket* socket_b) {
31 SyncSocket
[all...]
H A Dsync_socket.h30 class BASE_EXPORT SyncSocket { class in namespace:base
41 SyncSocket();
43 // Creates a SyncSocket from a Handle. Used in transport.
44 explicit SyncSocket(Handle handle) : handle_(handle) {} function in class:base::SyncSocket
45 virtual ~SyncSocket();
50 static bool CreatePair(SyncSocket* socket_a, SyncSocket* socket_b);
61 // Closes the SyncSocket. Returns true on success, false on failure.
64 // Sends the message to the remote peer of the SyncSocket.
72 // Receives a message from an SyncSocket
[all...]
H A Dsync_socket_posix.cc32 size_t SendHelper(SyncSocket::Handle handle,
37 DCHECK_NE(handle, SyncSocket::kInvalidHandle);
43 bool CloseHandle(SyncSocket::Handle handle) {
44 if (handle != SyncSocket::kInvalidHandle && close(handle) < 0) {
54 const SyncSocket::Handle SyncSocket::kInvalidHandle = -1;
56 SyncSocket::SyncSocket() : handle_(kInvalidHandle) {} function in class:base::SyncSocket
58 SyncSocket::~SyncSocket() {
[all...]
H A Dsync_socket_win.cc32 DCHECK_EQ(*socket_a, SyncSocket::kInvalidHandle);
33 DCHECK_EQ(*socket_b, SyncSocket::kInvalidHandle);
127 DCHECK_NE(file, SyncSocket::kInvalidHandle);
202 const SyncSocket::Handle SyncSocket::kInvalidHandle = INVALID_HANDLE_VALUE;
205 SyncSocket::SyncSocket() : handle_(kInvalidHandle) {} function in class:base::SyncSocket
207 SyncSocket::~SyncSocket() {
212 bool SyncSocket
[all...]

Completed in 147 milliseconds