maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Request] Android Notifier -> Maemo Notifier (https://talk.maemo.org/showthread.php?t=61949)

Cas07 2010-10-29 16:31

Re: [Request] Android Notifier -> Maemo Notifier
 
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):

scottuss 2010-10-29 17:39

Re: [Request] Android Notifier -> Maemo Notifier
 
Quote:

Originally Posted by Cas07 (Post 856809)
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!


All times are GMT. The time now is 00:39.

vBulletin® Version 3.8.8