GithubHelp home page GithubHelp logo

Comments (3)

x8lucas8x avatar x8lucas8x commented on July 3, 2024

@fongtech I use the last version (1.0.0) of zeroless in a LAN setup and it works. Could you provide the snippets of both your client and server, so that I can try to pinpoint the problem?

from python-zeroless.

fongtech avatar fongtech commented on July 3, 2024

When I netstat, app binded to 0.0.0.0 which is correct. But server not getting the msg.
Server runs on Ubuntu 14.04 and client on MacOS 10.10

#netstat -tulpn
tcp        0      0 0.0.0.0:12345           0.0.0.0:*               LISTEN      10868/python2.7 

client.py:

#!/opt/local/bin/python2.7
from zeroless import Client
client = Client()
client.connect('192.168.123.110',12345)
push = client.push()
for msg in [b"Msg1", b"Msg2", b"Msg3"]:
    push(msg)

server.py:

#!/opt/local/bin/python2.7
import logging
from zeroless import Server, log
consoleHandler = logging.StreamHandler()
log.setLevel(logging.DEBUG)
log.addHandler(consoleHandler)
listen_for_push = Server(port=12345).pull()
for msg in listen_for_push:
    print msg

from python-zeroless.

x8lucas8x avatar x8lucas8x commented on July 3, 2024

@fongtech If the ip you connect to is correct, your code is perfectly fine. Really, I don't know what could possibly be happening. Maybe you should try to use wireshark to double check if the packets are being sent and/or received.

from python-zeroless.

Related Issues (2)

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.