Notices


Reply
Thread Tools
Posts: 71 | Thanked: 88 times | Joined on Dec 2009
#21
I finally got it working.

There is a bind problem with SocketServer if you explicitly set localhost or hostname then it will only allow local socket connections so in server.py change:
Code:
HOST, PORT = "my-desktop", 50007
to
Code:
HOST, PORT = '', 50007
and a small mistake where the variable callernumber should be sendernumber
In client.py change:
Code:
def handle_call(obj_path, callernumber):
to
Code:
def handle_call(obj_path, sendernumber):
 
Posts: 31 | Thanked: 40 times | Joined on Aug 2010
#22
Originally Posted by Cas07 View Post
I finally got it working.

There is a bind problem with SocketServer if you explicitly set localhost or hostname then it will only allow local socket connections so in server.py change:
Code:
HOST, PORT = "my-desktop", 50007
to
Code:
HOST, PORT = '', 50007
and a small mistake where the variable callernumber should be sendernumber
In client.py change:
Code:
def handle_call(obj_path, callernumber):
to
Code:
def handle_call(obj_path, sendernumber):
I've not seen the issue with the socket only allowing local connections, I have to use the Fully Qualified Domain name here, so it would be my-desktop.lan for example but I suspect that's because of an issue with my DNS server.

As for the issue with the variable name, it seems to be correct (at least according to the Maemo documentation). Also, it works for me! Very strange.

I'm glad you have it working! And thanks for the feedback!
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:46.