mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-25 22:51:03 +00:00
Prepare support for more socket types
This commit is contained in:
@@ -13,6 +13,7 @@ using socklen_t = int;
|
||||
#define INVALID_SOCKET (SOCKET)(~0)
|
||||
#define SOCKET_ERROR (-1)
|
||||
#define GET_SOCKET_ERROR() (errno)
|
||||
#define closesocket close
|
||||
#endif
|
||||
|
||||
namespace network
|
||||
@@ -56,5 +57,7 @@ namespace network
|
||||
int address_family_{AF_UNSPEC};
|
||||
uint16_t port_ = 0;
|
||||
SOCKET socket_ = INVALID_SOCKET;
|
||||
|
||||
void release();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user