Posts: 14
Joined: Oct 2004
Reputation:
0
BennY-
Junior Member
Posts: 14
2004-11-21, 21:04
hello,
is there anyway to open a telnet connection with python from the xbox to a pc telnet server?
greets from germany
benny
:kickass:
Posts: 707
Joined: Jul 2004
Reputation:
6
yes
it exists a telnet library inside python but not sure it's ok with xbmc
Posts: 79
Joined: Oct 2004
Reputation:
0
i am a ubernewb when it comes to python scripting for xbmc. i'm looking for a simple python script that can do the following:
open a network connection on host - port 1399
send a string to the connection
recieve the returned data as a string
display this data on a window control
close the connection by sending a "quit"
i can currently communicate with the server by using the telnet client and interactively typing the commands. so what i'm trying to do is just emulate the telnet client programmatically. i know that there is a telnetlib library that might work.
anyone help?
thanks
Posts: 79
Joined: Oct 2004
Reputation:
0
i know that it looks simple, but i literally have no experience writing python scripts so any help is very appreciated. i was looking through python documentation and it looks like there is also a telnetlib class that i can potentially use?
as the tsreader control server can allow a telnet client to interact with it (tested this with command prompt), is there someone that can show me an easy example that provides the above listed functionality? i can probably figure it out from there. if comments are included it would make it a lot easier to figure out too.
thanks again in advance... i'm just trying to write this interface myself so i don't have to rely on the uberdevs.
jt