-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use htonl, etc. Use BigDWord and friends.
Yes those are weird and non-standard. But on Windows ntohl actually is a (dll import) function call. This is slower than our defines and inlines (probably not a huge deal). Also, in situations where we just want to parse/print IP addresses we need to link with winsock? That is dumb.
- Loading branch information
1 parent
7b3d6ab
commit 5613e2a
Showing
1 changed file
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters