Code Monkey home page Code Monkey logo

anette's People

Contributors

dvergar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

longde123 elix22

anette's Issues

EOF when trying to connect to a server with a different ip address

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.

Disconnection halts apps

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

Code for the sample server is out of date

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

Flash client sends to Windows server - server hangs

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?

make onConnectionError public

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.