hxnet icon indicating copy to clipboard operation
hxnet copied to clipboard

Udp support seems to be out of date?

Open jscott1989 opened this issue 8 years ago • 1 comments

Trying to set up a Udp server, using:

import hxnet.base.Factory; import hxnet.udp.Server;

var server = new Server(new Factory(hxnet.protocols.Telnet), 5959, "localhost");

I get the errors:

/usr/local/lib/haxelib/hxnet/git/hxnet/udp/Server.hx:72: characters 5-28 : hxnet.interfaces.Protocol has no field makeConnection (Suggestion: loseConnection) /usr/local/lib/haxelib/hxnet/git/hxnet/udp/Connection.hx:10: lines 10-49 : Field isOpen needed by hxnet.interfaces.Connection is missing /usr/local/lib/haxelib/hxnet/git/hxnet/udp/Connection.hx:18: lines 18-40 : Field writeBytes has different type than in hxnet.interfaces.Connection /usr/local/lib/haxelib/hxnet/git/hxnet/udp/Connection.hx:18: lines 18-40 : Different number of function arguments /usr/local/lib/haxelib/hxnet/git/hxnet/udp/Server.hx:19: lines 19-97 : Field broadcast needed by hxnet.interfaces.Server is missing

Is it just that the udp classes haven't kept up to date and are no longer usable?

jscott1989 avatar Mar 19 '16 17:03 jscott1989

Technically UDP was never officially added to Haxe. It was planned for a release in Neko but it had to be compiled from source. They haven't done a binary release of Neko since 2013 so https://github.com/HaxeFoundation/neko is your best bet.

MattTuttle avatar Mar 28 '16 03:03 MattTuttle