timeout is configurable

This commit is contained in:
Benjamin Sergeant
2019-01-03 18:33:08 -08:00
parent 3021ac4b95
commit bce5ef2dca
9 changed files with 54 additions and 24 deletions

View File

@ -53,8 +53,11 @@ namespace ix
WebSocketInitResult clientHandshake(const std::string& url,
const std::string& host,
const std::string& path,
int port);
WebSocketInitResult serverHandshake(int fd);
int port,
int timeoutSecs);
WebSocketInitResult serverHandshake(int fd,
int timeoutSecs);
static bool parseUrl(const std::string& url,
std::string& protocol,