diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-05-29 00:05:08 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-06-04 23:14:52 +0200 |
| commit | cb2d7f800a9fc276b96fd0927fa6d8ec9f5a31c8 (patch) | |
| tree | 3fcd11e34885c4dddc459c875c94e3b958d7750a /libpcsxcore/socket.c | |
| parent | 850010a96b6cbc3eae03edd891e50325e017b678 (diff) | |
| download | pcsxr-cb2d7f800a9fc276b96fd0927fa6d8ec9f5a31c8.tar.gz | |
Implemented port-specific wrappers and logic for gdb stub
Diffstat (limited to 'libpcsxcore/socket.c')
| -rw-r--r-- | libpcsxcore/socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpcsxcore/socket.c b/libpcsxcore/socket.c index 51aefdf7..eec4c96a 100644 --- a/libpcsxcore/socket.c +++ b/libpcsxcore/socket.c @@ -88,7 +88,7 @@ void StopServer(int s_socket) { #endif } -int GetClient(int s_socket) { +int GetClient(int s_socket, int blocking) { int new_socket = accept(s_socket, NULL, NULL); #ifdef _WIN32 @@ -100,6 +100,7 @@ int GetClient(int s_socket) { #endif #ifndef _WIN32 + if (!blocking) { int flags; flags = fcntl(new_socket, F_GETFL, 0); |
