Ignore:
Timestamp:
11/15/10 17:04:42 (18 months ago)
Author:
shiretu
Message:

-- major refactoring for endianess. Some platforms may break. It will be fixed shortly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/thelib/src/protocols/rtmp/inboundrtmpprotocol.cpp

    r131 r168  
    6363                        } 
    6464 
    65                         _currentFPVersion = ntohl(*((uint32_t *) (GETIBPOINTER(buffer) + 4))); //----MARKED-LONG--- 
     65                        _currentFPVersion = ENTOHL(*((uint32_t *) (GETIBPOINTER(buffer) + 4))); //----MARKED-LONG--- 
    6666                        //FINEST("Flash player: %s", STR(_currentFlashPlayerVersion)); 
    6767 
     
    188188 
    189189        //version 
    190         *(uint32_t *) (_pOutputBuffer + 4) = htonl(0x01020304); //----MARKED-LONG--- 
     190        *(uint32_t *) (_pOutputBuffer + 4) = EHTONL(0x01020304); 
    191191 
    192192        //generate random data 
Note: See TracChangeset for help on using the changeset viewer.