dvergar / anette Goto Github PK
View Code? Open in Web Editor NEWSimple haxe network library
License: Do What The F*ck You Want To Public License
Simple haxe network library
License: Do What The F*ck You Want To Public License
The library works great when connecting to another instance of the program on the same machine, except for when the server is bound to a different ip address than the client attempts to connect to.
For example: if the server is created with an ip of "127.0.0.1" and a port of "32000" and the client attempts to connect to "127.0.0.1" on port "32000", it works just fine. If both the client and the server are using the machine's private ip (say, 192.168.1.14) and let's say port 32000, it works. However, if the server is created with "127.0.0.1" and "32000" and the client attempts to connect to "192.168.1.14" and "32000", it cannot connect.
I have handlers as in the example code in the readme, and the connection error handler is called due to an EOF.
Additionally, I have not had success in connecting between different machines, as different ip addresses are used when creating the client and server.
Hi, I have one server and one client talking to each other and trading data, whenever I close one app it boink halts and the other does the same. (these are two Windows apps)
Is there a recommended clean way to exit ?
Does it happen because one is sending/receiving and suddenly it halts because of non completion.
Can I listen for some event so this doesn't happen ?
Thank you
Frank
Example:
$ haxe TestServerNeko.hxml
TestServer.hx:45: characters 8-32 : anette.Server has no field output
TestServer.hx:48: characters 8-31 : anette.Server has no field output
TestServer.hx:49: characters 8-33 : anette.Server has no field output
In the Server.hx pump function, in the try block, in the while(true) block, the server receives an ever-lasting stream of zeros (from readByte()). This causes it to hang in the while loop. I guess it's because flash and native sockets behave differently, but I don't know enough about them to understand what's going in.
I'm more than willing to help solve this issue, I'm just really confused right now. Could you give me a few pointers about the differences between flash and native sockets?
as title; handy for stuff like spawning a server if one doesn't exist (this may be terrible practice, I've never tried networking until today, and haven't read any articles recently or very thoroughly, this is just what I thought of.)
Nico
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.