diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-06-17 13:31:13 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-06-17 13:31:13 +0000 |
commit | 6e6537f83260a1d4e976ea77e2803e1a2d3cf115 (patch) | |
tree | 7e99f679a1488a58ba877b3fbf70f516057417d3 /pjlib/src/pj/os_symbian.h | |
parent | 667d03f95abda64795c2064630cef48f843062f7 (diff) |
Ticket #758 (Problem with TCP transport on Symbian)
- fixed TCP recv() to use RecvOneOrMore()
- fixed activesock unit test in pjlib-test
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2771 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/os_symbian.h')
-rw-r--r-- | pjlib/src/pj/os_symbian.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/pjlib/src/pj/os_symbian.h b/pjlib/src/pj/os_symbian.h index 3497e7af..c6f2fe77 100644 --- a/pjlib/src/pj/os_symbian.h +++ b/pjlib/src/pj/os_symbian.h @@ -54,8 +54,9 @@ public: }; // Construct CPjSocket - CPjSocket(int af, RSocket &sock) - : af_(af), sock_(sock), connected_(false), sockReader_(NULL) + CPjSocket(int af, int sock_type, RSocket &sock) + : af_(af), sock_(sock), sock_type_(sock_type), connected_(false), + sockReader_(NULL) { } @@ -86,6 +87,18 @@ public: connected_ = connected; } + // Get socket type + int GetSockType() const + { + return sock_type_; + } + + // Returns true if socket is a datagram + bool IsDatagram() const + { + return sock_type_ == KSockDatagram; + } + // Get socket reader, if any. // May return NULL. CPjSocketReader *Reader() @@ -103,6 +116,8 @@ private: int af_; RSocket sock_; // Must not be reference, or otherwise // it may point to local variable! + unsigned sock_type_; + bool connected_; CPjSocketReader *sockReader_; }; |