mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 05:29:43 +01:00
problem: ws_engine don't support WS RFC close control msg
Solution: when peer send a close msg, close the connection
This commit is contained in:
@@ -454,6 +454,11 @@ bool zmq::msg_t::is_pong () const
|
||||
return (_u.base.flags & CMD_TYPE_MASK) == pong;
|
||||
}
|
||||
|
||||
bool zmq::msg_t::is_close_cmd () const
|
||||
{
|
||||
return (_u.base.flags & CMD_TYPE_MASK) == close_cmd;
|
||||
}
|
||||
|
||||
size_t zmq::msg_t::command_body_size () const
|
||||
{
|
||||
if (this->is_ping () || this->is_pong ())
|
||||
|
||||
Reference in New Issue
Block a user