Skip to content

64bit ntohtl and htonl in iOS 8 #382

@svendjo

Description

@svendjo

We recently moved to XCode 6 / iOS 8 and ran into a problem building WebSocket++. We're on version 0.3.0-alpha4 of the library so it's a bit old.

The issue seems to be that WebSocket++ defines 64 bit versions of ntohtll and htonll. And they don't compile against iOS 8.

websocketpp/common/network.hpp
ntohtll, htonll

I get a compilation error saying "Expected (" on the ntohtll method name.

Deleting the WebSocket++ implementations and using Apple's ntohl & htonl caused runtime errors, so that was not a solution. Instead I just renamed ntohtll -> ntohtllex and htonll -> htonllex in my own branch.

You may want to do some ntohtll, htonll detection in the header before defining your own.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions