Changeset 1248 for pjproject/trunk/pjlib/src/pj/sock_symbian.cpp
- Timestamp:
- May 3, 2007 7:56:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/sock_symbian.cpp
r1246 r1248 67 67 CPjSocket::~CPjSocket() 68 68 { 69 DestroyReader(); 70 sock_.Close(); 71 } 72 73 74 // Create socket reader. 75 CPjSocketReader *CPjSocket::CreateReader(unsigned max_len) 76 { 77 pj_assert(sockReader_ == NULL); 78 return sockReader_ = CPjSocketReader::NewL(*this, max_len); 79 } 80 81 // Delete socket reader when it's not wanted. 82 void CPjSocket::DestroyReader() 83 { 69 84 if (sockReader_) { 70 85 if (sockReader_->IsActive()) … … 73 88 sockReader_ = NULL; 74 89 } 75 sock_.Close();76 }77 78 79 // Create socket reader.80 CPjSocketReader *CPjSocket::CreateReader(unsigned max_len)81 {82 pj_assert(sockReader_ == NULL);83 return sockReader_ = CPjSocketReader::NewL(*this, max_len);84 90 } 85 91 … … 164 170 void (*old_cb)(void *key) = readCb_; 165 171 void *old_key = key_; 166 bool is_active = IsActive();167 172 168 173 readCb_ = NULL;
Note: See TracChangeset
for help on using the changeset viewer.