Ignore:
Timestamp:
Jun 17, 2009 1:31:13 PM (15 years ago)
Author:
bennylp
Message:

Ticket #758 (Problem with TCP transport on Symbian)

  • fixed TCP recv() to use RecvOneOrMore?()
  • fixed activesock unit test in pjlib-test
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_symbian.h

    r2481 r2771  
    5555 
    5656    // 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) 
    5960    {  
    6061    } 
     
    8788    } 
    8889 
     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     
    89102    // Get socket reader, if any. 
    90103    // May return NULL. 
     
    104117    RSocket          sock_;         // Must not be reference, or otherwise 
    105118                                    // it may point to local variable! 
     119    unsigned         sock_type_; 
     120     
    106121    bool             connected_; 
    107122    CPjSocketReader *sockReader_; 
Note: See TracChangeset for help on using the changeset viewer.