Ignore:
Timestamp:
Jun 25, 2009 12:26:15 PM (15 years ago)
Author:
bennylp
Message:

Ticket #759: Problem with TCP transport on Symbian

  • backported changes in #758
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.0/pjlib/src/pj/ioqueue_symbian.cpp

    r2482 r2804  
    214214        aAddress_.SetAddress(0); 
    215215        aAddress_.SetPort(0); 
    216         sock_->Socket().Recv(aBufferPtr_, flags, iStatus); 
     216 
     217        if (sock_->IsDatagram()) { 
     218            sock_->Socket().Recv(aBufferPtr_, flags, iStatus); 
     219        } else { 
     220            // Using static like this is not pretty, but we don't need to use 
     221            // the value anyway, hence doing it like this is probably most 
     222            // optimal. 
     223            static TSockXfrLength len; 
     224            sock_->Socket().RecvOneOrMore(aBufferPtr_, flags, iStatus, len); 
     225        } 
    217226    } 
    218227 
     
    278287{ 
    279288        CPjSocket *pjNewSock = new CPjSocket(get_pj_socket()->GetAf(),  
     289                                             get_pj_socket()->GetSockType(), 
    280290                                             blank_sock_); 
    281291        int addrlen = 0; 
Note: See TracChangeset for help on using the changeset viewer.