mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Implements basic TCP connection logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@326 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@
|
||||
# define HTONS(ns) \
|
||||
(uint16)((((uint16) (ns)) << 8) | (((uint16) (ns)) >> 8))
|
||||
# define HTONL(nl) htonl(nl) \
|
||||
((uint32)HTONS((uint16)((hs) << 16)) | (uint32)HTONS((uint16)((hs) & 0xffff)))
|
||||
(((uint32)HTONS((uint16)((hs) & 0xffff)) << 16) | (uint32)HTONS((uint16)((uint16)((hs) >> 16))))
|
||||
#endif
|
||||
|
||||
#define NTOHS(hs) HTONS(hs)
|
||||
|
||||
Reference in New Issue
Block a user