xboxscene.org forums

OG Xbox Forums => XboxMediaCenter => Software Forums => XBMC Python Scripting Forum => Topic started by: jimity on March 11, 2006, 02:27:00 PM

Title: How Do I Close A Clientsocket ?
Post by: jimity on March 11, 2006, 02:27:00 PM
Hey guys,

I've been looking in other scripts to hopefully get a few pointers on this but not getting anywhere fast smile.gif

I was wondering if anyone knows how to close a socket (networking) connection through a scipt ? So far I've managed to find that the command to connect to another host is the following:

clientsocket.connect((HostName, Port))

I havent been able to find anything though that tells me how to close it. Would it be something like :

clientsocket.close?
clientsocket.disconnect?

So far i've tried these two but it doesn't appear to do anything. I assume this is the wrong syntax. Any help would be REALLY appreciated. . .Thanx in advance. . .