diff options
| author | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-04-20 17:08:20 +0200 |
|---|---|---|
| committer | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-05-02 02:34:45 +0200 |
| commit | 7ab44f41ca9d1bb6eed0d997b295ebfca2389390 (patch) | |
| tree | a1d2937e32462eaeb314aa49fd3d8d241ae587da /libpcsxcore/socket.h | |
| parent | 62467b86871aee3d70c7445f3cb79f0858ec566e (diff) | |
| download | pcsxr-7ab44f41ca9d1bb6eed0d997b295ebfca2389390.tar.gz | |
Support for multiple sockets
Diffstat (limited to 'libpcsxcore/socket.h')
| -rw-r--r-- | libpcsxcore/socket.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libpcsxcore/socket.h b/libpcsxcore/socket.h index 7ee0deb4..ef26de02 100644 --- a/libpcsxcore/socket.h +++ b/libpcsxcore/socket.h @@ -22,20 +22,20 @@ extern "C" { #endif -int StartServer(); -void StopServer(); +int StartServer(unsigned short port); +void StopServer(int s_socket); -void GetClient(); -void CloseClient(); +void GetClient(int s_socket, int *client_socket); +void CloseClient(int *client_socket); -int HasClient(); +int HasClient(int client_socket); -int ReadSocket(char * buffer, int len); -int RawReadSocket(char * buffer, int len); -void WriteSocket(char * buffer, int len); +int ReadSocket(int *client_socket, char * buffer, int len); +int RawReadSocket(int *client_socket, char * buffer, int len); +void WriteSocket(int *client_socket, char * buffer, int len); -void SetsBlock(); -void SetsNonblock(); +void SetsBlock(int s_socket); +void SetsNonblock(int s_socket); #ifdef __cplusplus } |
