mIRC Home    About    Download    Register    News    Help

Print Thread
#96190 30/08/04 09:53 AM
P
p0rky
p0rky
P
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?

P
p0rky
p0rky
P
lol, someone.. please? ;/

Joined: Dec 2002
Posts: 1,536
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,536
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
S
Sigh
Sigh
S
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

P
p0rky
p0rky
P
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?

P
p0rky
p0rky
P
or is it .wserr/.wsmsg?

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
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.

Link Copied to Clipboard