XBMC Community Forum  

Go Back   XBMC Community Forum > Help and Support > Plugin/Script (Python) Help and Support

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]"

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 2004-10-21, 23:17   #1
gonella
Junior Member
 
Join Date: Mar 2004
Posts: 10
gonella is on a distinguished road
Default

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.
gonella is offline  
Closed Thread

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT +2. The time now is 16:35.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project