Changeset 2804 for pjproject/branches/1.0/pjlib/src/pj/os_symbian.h
- Timestamp:
- Jun 25, 2009 12:26:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.0/pjlib/src/pj/os_symbian.h
r2482 r2804 55 55 56 56 // Construct CPjSocket 57 CPjSocket(int af, RSocket &sock) 58 : af_(af), sock_(sock), connected_(false), sockReader_(NULL) 57 CPjSocket(int af, int sock_type, RSocket &sock) 58 : af_(af), sock_(sock), sock_type_(sock_type), connected_(false), 59 sockReader_(NULL) 59 60 { 60 61 } … … 87 88 } 88 89 90 // Get socket type 91 int GetSockType() const 92 { 93 return sock_type_; 94 } 95 96 // Returns true if socket is a datagram 97 bool IsDatagram() const 98 { 99 return sock_type_ == KSockDatagram; 100 } 101 89 102 // Get socket reader, if any. 90 103 // May return NULL. … … 104 117 RSocket sock_; // Must not be reference, or otherwise 105 118 // it may point to local variable! 119 unsigned sock_type_; 120 106 121 bool connected_; 107 122 CPjSocketReader *sockReader_;
Note: See TracChangeset
for help on using the changeset viewer.