refactor receiving socket code in its own method

This commit is contained in:
Benjamin Sergeant
2020-01-09 12:00:34 -08:00
parent b816f1fbda
commit fe29579755
2 changed files with 37 additions and 29 deletions

View File

@ -99,7 +99,6 @@ namespace ix
bool remote = false);
void closeSocket();
ssize_t send();
ReadyState getReadyState() const;
void setReadyState(ReadyState readyState);
@ -245,6 +244,8 @@ namespace ix
bool flushSendBuffer();
bool sendOnSocket();
bool receiveFromSocket();
WebSocketSendInfo sendData(wsheader_type::opcode_type type,
const std::string& message,
bool compress,