Searched refs:ntohs (Results 1 – 14 of 14) sorted by relevance
115 if (!onPush() && !(ntohs(mRemoteAddr.sin_port) & 1)) { in onMessageReceived()131 tmp.sin_port = htons(ntohs(mRemoteAddr.sin_port) | 1); in onMessageReceived()
104 CHECK_EQ(0, ntohs(mRTPAddr.sin_port) & 1); in ARTPWriter()107 mRTCPAddr.sin_port = htons(ntohs(mRTPAddr.sin_port) | 1); in ARTPWriter()871 … sdp.append(AStringPrintf("%d", mIsIPv6 ? ntohs(mRTPAddr6.sin6_port) : ntohs(mRTPAddr.sin_port))); in dumpSessionDesc()
292 size_t length = ntohs(segment->length); in findJpegSize()342 *width = ntohs(startOfFrame->width); in getJpegImageDimensions()343 *height = ntohs(startOfFrame->height); in getJpegImageDimensions()
194 service->port = ntohs(reinterpret_cast<const sockaddr_in*>(addr)->sin_port); in main()198 service->port = ntohs(reinterpret_cast<const sockaddr_in6*>(addr)->sin6_port); in main()
59 uint16_t port = ntohs(*p); in create()
436 offset += 4 + (ntohs(*(uint16_t *)&buffer[offset + 2]) << 2); in decode()
273 *size = ntohs(x); in getSampleSizeDirect()
4064 sprintf(tmp, "%d/%d", ntohs(*pTrack), ntohs(*pTotalTracks)); in parseITunesMetaData()4076 sprintf(tmp, "%d/%d", ntohs(*pDisc), ntohs(*pTotalDiscs)); in parseITunesMetaData()6407 dstData[j] = ntohs(srcData[j]); in read()
396 size_t length = ntohs(segment->length); in findJpegSize()
101 unsigned int realPort = ntohs(addr.sin_port); in setupInetServer()
1736 ptr[i] = ntohs(ptr[i]); in dequeueAccessUnitPCMAudio()
1114 dstData[i] = ntohs(srcData[i]); in read()
1590 uint16_t p = ntohs(endpoint->sin_port); in setRetransmitEndpoint()
66 #define ntohs(x) ( (((x) << 8) & 0xff00) | (((x) >> 8) & 255) ) macro67 #define htons(x) ntohs(x)