![]() |
|
|||||||
| Plugin/Script (Python) Help and Support Python requests/suggestions, support, bugs, and everything python goes in here! Please, add platform prefix to threads that are not platform-independent!: Thread prefixes; "[LINUX]", "[LIVE]", "[MAC]", "[WINDOWS]", and "[XBOX]" |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Mar 2004
Posts: 10
![]() |
hi friends,
i am new with python, but i have coded a simple client/server script that works fine on my pc. i tried to port on xbmc and i have a problem. every thing goes fine until 2nd pas: def oncontrol(self, control): global s if control == self.botogravarara: try: s = socket.socket(socket.af_inet, socket.sock_stream) except: self.messageg("1.pass") try: s.connect((host, port)) except: self.messageg("2.pass") datos='hello' try: s.send(datos) except: self.messageg("3.pass") try: s.close() except: self.messageg("4.pass") self.messageg("done!") and of course, host and port are declared before. it can't send data, because the script shows "2.pass", "3.pass", "4.pass", "done!". it has connectivity with the pc (host) and it has the server on the correct port (i have ported the client script from the one i coded on the pc and it works) i don't know what i'm doing wrong. i have shutdown the firewall, i can ftp, see the news on xbmc, see the weather... any help would be welcomed. thanks in advance.pd: sorry, the post doesn't show tabs. they really exist on the program. |
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Socket & bind | tbje | Plugin/Script (Python) Development | 5 | 2007-05-05 19:14 |
| cddb lookup context and socket errors | awaldram | XBMC for Xbox Specific Support | 2 | 2006-04-30 14:23 |
| Socket server | thor918 | Plugin/Script (Python) Development | 2 | 2005-05-06 01:58 |
| Socket problem | gonella | Plugin/Script (Python) Development | 3 | 2004-10-27 16:21 |