2006-03-11, 23:54
hey guys,
i've been looking in other scripts to hopefully get a few pointers on this but not getting anywhere fast
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. . .
i've been looking in other scripts to hopefully get a few pointers on this but not getting anywhere fast
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. . .