Searched refs:htons (Results 1 – 12 of 12) sorted by relevance
45 sin->sin_port = htons(port); in parse()53 sin6->sin6_port = htons(port); in parse()
75 *p = htons(port); in create()
51 mRemoteAddr.sin_port = htons(port); in UDPPusher()131 tmp.sin_port = htons(ntohs(mRemoteAddr.sin_port) | 1); in onMessageReceived()
159 addr.sin_port = htons(port); in MakePortPair()166 addr.sin_port = htons(port + 1); in MakePortPair()246 addr6.sin6_port = htons((uint16_t)localPort); in MakeRTPSocketPair()252 addr4.sin_port = htons((uint16_t)localPort); in MakeRTPSocketPair()269 addr6.sin6_port = htons(localPort + 1); in MakeRTPSocketPair()271 addr4.sin_port = htons(localPort + 1); in MakeRTPSocketPair()285 addr6.sin6_port = htons((uint16_t)remotePort); in MakeRTPSocketPair()290 addr4.sin_port = htons((uint16_t)remotePort); in MakeRTPSocketPair()301 addr6.sin6_port = htons(remotePort + 1); in MakeRTPSocketPair()303 addr4.sin_port = htons(remotePort + 1); in MakeRTPSocketPair()
103 mRTPAddr.sin_port = htons(5634); in ARTPWriter()107 mRTCPAddr.sin_port = htons(ntohs(mRTPAddr.sin_port) | 1); in ARTPWriter()1652 mLocalAddr6.sin6_port = htons((uint16_t)localPort); in makeSocketPairAndBind()1656 mRTPAddr6.sin6_port = htons((uint16_t)remotePort); in makeSocketPairAndBind()1659 mRTCPAddr6.sin6_port = htons((uint16_t)(remotePort + 1)); in makeSocketPairAndBind()1667 mLocalAddr.sin_port = htons((uint16_t)localPort); in makeSocketPairAndBind()1671 mRTPAddr.sin_port = htons((uint16_t)remotePort); in makeSocketPairAndBind()1674 mRTCPAddr.sin_port = htons((uint16_t)(remotePort + 1)); in makeSocketPairAndBind()1689 mLocalAddr6.sin6_port = htons((uint16_t)(localPort + 1)); in makeSocketPairAndBind()1691 mLocalAddr.sin_port = htons((uint16_t)(localPort + 1)); in makeSocketPairAndBind()
108 addr.sin_port = htons(port); in MakeUDPSocket()
282 remote.sin_port = htons(port); in onConnect()
308 serverAddress.sin_port = htons(kPort); in startServer()
410 addr.sin_port = htons(rtpPort); in pokeAHole()421 addr.sin_port = htons(rtcpPort); in pokeAHole()
856 mRetransmitEndpoint.sin_port = htons(port); in setRetransmitEndpoint()
1880 x = htons(x); in writeInt16()
67 #define htons(x) ntohs(x) macro