can create a socket from a fd

This commit is contained in:
Benjamin Sergeant
2018-12-29 21:53:33 -08:00
parent 9cc324d78d
commit 24c9e0abc3
8 changed files with 82 additions and 48 deletions

View File

@@ -22,7 +22,7 @@ namespace ix
public:
using OnPollCallback = std::function<void()>;
Socket();
Socket(int fd = -1);
virtual ~Socket();
void configure();