-
-
Notifications
You must be signed in to change notification settings - Fork 676
UDP support on hxcpp #3951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ping @hughsando |
I could basically copy the neko file over, but I'm not 100% sure how to test this. |
Still not implemented? I got 'primitive not found' error both on neko and cpp. |
Cpp should be giving a "Not available on this platform" error? |
@hughsando as soon as you add sendto/recvfrom it should be pretty straightforward: |
No test pair lying around on your hard drive? On Tue, Sep 29, 2015 at 4:05 PM, Nicolas Cannasse [email protected]
|
Sorry no, but usually you would create two UDP sockets, then have one sendTo A and B recvFrom will return both the data and A address. here's some server code snip:
And the client (in Flash)
|
This seems like a reasonable template for a test: |
I'm not really after a "unit test" just anything that uses the neko api and However, I have added the code completely untested so I guess we can do On Wed, Oct 14, 2015 at 4:42 AM, Alan [email protected] wrote:
|
The udp code is in there now. |
So it seems to be implemented:
https://github.com/HaxeFoundation/hxcpp/blob/8bc5141ee3edbad2046fa31fb3be853845a9607c/project/libs/std/Socket.cpp#L138
Yet on the haxe side, there isn't any cpp sys.net.UdpSocket class, only the default one which throws "not implemented"
https://github.com/HaxeFoundation/haxe/blob/development/std/sys/net/UdpSocket.hx
Surprised that haxe has no Udp support for this long! : O
P.
The text was updated successfully, but these errors were encountered: