Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TCPSocketImpl::TCPSocketImpl(TCPSocket* pFacade)
- : oBuffer(nSendBufferSize), inBuffer(nReceiveBufferSize) {
- this->pFacade = pFacade;
- status = TCPSocket::Disconnected;
- bSendInProgress = false;
- ::InitializeCriticalSection(&cs);
- }
- TCPSocketImpl::~TCPSocketImpl() {
- //Stop processing thread :
- if (status != TCPSocket::Disconnected) {
- disconnect(false);
- }
- ::DeleteCriticalSection(&cs);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement