mIRC Home    About    Download    Register    News    Help

Print Thread
stupid question about socks #96190 30/08/04 09:53 AM
Joined: Aug 2004
Posts: 13
P
p0rky Offline OP
Pikka bird
OP Offline
Pikka bird
P
Joined: Aug 2004
Posts: 13
Ok, this is my first time messing with sockets/sockbots, and say I wanted to display the status of the socket/sockbot into a list on a dialog, how would I do that?

Re: stupid question about socks #96191 30/08/04 10:37 AM
Joined: Aug 2004
Posts: 13
P
p0rky Offline OP
Pikka bird
OP Offline
Pikka bird
P
Joined: Aug 2004
Posts: 13
lol, someone.. please? ;/

Re: stupid question about socks #96192 30/08/04 10:39 AM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
be patient p0rky, it's only been an hour or two. Ths is a slower time of day on here. If people have the knowledge to help you Im sure they will if you're patient smile And no, I can't answer you as I havent a clue about it sorry


Those who fail history are doomed to repeat it
Re: stupid question about socks #96193 30/08/04 11:07 AM
Joined: Aug 2003
Posts: 314
S
Sigh Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
You can retrieve the status of a socket using $sock(sockname).status which returns connecting when a connection is being established, and active when a connected has been established. It will also return $null if the socket has been disconnected, i.e. it is no longer open

Re: stupid question about socks #96194 30/08/04 07:19 PM
Joined: Aug 2004
Posts: 13
P
p0rky Offline OP
Pikka bird
OP Offline
Pikka bird
P
Joined: Aug 2004
Posts: 13
ok that gives me "connecting", but when it connects, it doesnt stay connected (and I don't want it to) so how can i get it to tell me that it's disconnected, $sockerr?

Re: stupid question about socks #96195 30/08/04 07:25 PM
Joined: Aug 2004
Posts: 13
P
p0rky Offline OP
Pikka bird
OP Offline
Pikka bird
P
Joined: Aug 2004
Posts: 13
or is it .wserr/.wsmsg?

Re: stupid question about socks #96196 30/08/04 07:27 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Houw 'bout on SOCKCLOSE?

Edit: Also, as sigh has already posted:

Quote:
It will also return $null if the socket has been disconnected, i.e. it is no longer open

Last edited by KingTomato; 30/08/04 07:28 PM.

-KingTomato