File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -230,23 +230,42 @@ class TcpConnectionImpl : public TcpConnection,
230230    {
231231        recvMsgCallback_ = cb;
232232    }
233+     void  setRecvMsgCallback (RecvMessageCallback &&cb)
234+     {
235+         recvMsgCallback_ = std::move (cb);
236+     }
233237    void  setConnectionCallback (const  ConnectionCallback &cb)
234238    {
235239        connectionCallback_ = cb;
236240    }
241+     void  setConnectionCallback (ConnectionCallback &&cb)
242+     {
243+         connectionCallback_ = std::move (cb);
244+     }
237245    void  setWriteCompleteCallback (const  WriteCompleteCallback &cb)
238246    {
239247        writeCompleteCallback_ = cb;
240248    }
249+     void  setWriteCompleteCallback (WriteCompleteCallback &&cb)
250+     {
251+         writeCompleteCallback_ = std::move (cb);
252+     }
241253    void  setCloseCallback (const  CloseCallback &cb)
242254    {
243255        closeCallback_ = cb;
244256    }
257+     void  setCloseCallback (CloseCallback &&cb)
258+     {
259+         closeCallback_ = std::move (cb);
260+     }
245261    void  setSSLErrorCallback (const  SSLErrorCallback &cb)
246262    {
247263        sslErrorCallback_ = cb;
248264    }
249- 
265+     void  setSSLErrorCallback (SSLErrorCallback &&cb)
266+     {
267+         sslErrorCallback_ = std::move (cb);
268+     }
250269    void  connectDestroyed ();
251270    virtual  void  connectEstablished ();
252271
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments