Avoid unnecessary copies by recv()ing data directly into the expat buffer
This commit is contained in:
@@ -80,7 +80,7 @@ std::string IrcClient::get_own_nick() const
|
||||
return this->current_nick;
|
||||
}
|
||||
|
||||
void IrcClient::parse_in_buffer()
|
||||
void IrcClient::parse_in_buffer(const size_t)
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
* Parse the data we have received so far and try to get one or more
|
||||
* complete messages from it.
|
||||
*/
|
||||
void parse_in_buffer() override final;
|
||||
void parse_in_buffer(const size_t) override final;
|
||||
/**
|
||||
* Return the channel with this name, create it if it does not yet exist
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user