|
-
Oct 19th, 2000, 09:34 AM
#1
Thread Starter
Member
I want to use a Ping from server to a client via TCP!
The Server should Ping all clients in my listbox to check if the clients are online!
if some clients are not responsing, i will use
case "noPing"
Listbox.removeItem (index)
need example!!!!!
the clients send data "PCNAME" and the server write this name into my listbox. but a name have to deleted if one client are not responsing!
Like(listbox)
PC1
PC2 <-not responsing after a time server remove this name!
PC3
PC4
PC5
name PC2 will be set back if this client app will be restartet and ping probably!!
[Edited by Gear on 10-20-2000 at 05:48 AM]
-
Oct 19th, 2000, 09:37 AM
#2
Frenzied Member
Sometimes the answer isn't that far away from you... (a few threads )
http://209.207.250.147/showthread.php?threadid=36057
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Oct 19th, 2000, 10:01 AM
#3
Thread Starter
Member
Hmm
any simple code, maybe??????
like:Server Ping to all clients in my listbox
if any client is not respnsing server should remove client name from listbox.
thats all!
-
Oct 20th, 2000, 07:45 PM
#4
Thread Starter
Member
-
Oct 20th, 2000, 08:30 PM
#5
Hyperactive Member
It pretty simple . When a client Logs onto the server add the pcname to a 2 dimensional array containing the Name and winsock index . Then use the winsock close event to detect the winsock index that closed the connection .
Visual Basic 6 SP4 on win98se
QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|