Advertisement
Guest User

Untitled

a guest
Sep 16th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TCPSocketImpl::TCPSocketImpl(TCPSocket* pFacade)
  2. : oBuffer(nSendBufferSize), inBuffer(nReceiveBufferSize) {
  3.  
  4.     this->pFacade = pFacade;
  5.  
  6.  
  7.     status = TCPSocket::Disconnected;
  8.  
  9.     bSendInProgress = false;
  10.  
  11.     ::InitializeCriticalSection(&cs);
  12. }
  13.  
  14. TCPSocketImpl::~TCPSocketImpl() {
  15.     //Stop processing thread :
  16.     if (status != TCPSocket::Disconnected) {
  17.         disconnect(false);
  18.     }
  19.     ::DeleteCriticalSection(&cs);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement