Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Get IP address from PSWebSocket #70

Open
szuwest opened this issue Nov 28, 2017 · 3 comments
Open

Get IP address from PSWebSocket #70

szuwest opened this issue Nov 28, 2017 · 3 comments

Comments

@szuwest
Copy link

szuwest commented Nov 28, 2017

How can I get IP addrss from PSWebSocket?

@szuwest
Copy link
Author

szuwest commented Nov 30, 2017

I have found the solution in PSWebSocketServerDelegate.

  • (BOOL)server:(PSWebSocketServer *)server acceptWebSocketWithRequest:(NSURLRequest *)request address:(NSData *)address trust:(SecTrustRef)trust response:(NSHTTPURLResponse **)response

There can get address.

@whizdummy
Copy link

How do you parse (NSData *) address data?

@szuwest
Copy link
Author

szuwest commented Dec 11, 2017

@whizdummy CocoaAsyncSocket , GCDAsyncUdpSocket hostFromAddress:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants