![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Professional Programmer
|
Help with Winsock
Hey yall. I am working on a program that runs on a network of about 20 computers. I have the client made and the server made. I want it when the client is turned on and some1 logs in it will show the clients name in the listbox on the server program on another computer. I already have it to where it will get computer name btu I dont knwo how to send it to the server. Also how could I when the computer is logged off it automatically takes that clients name out of the lstbox? I got everrything working except for this. So please help me if you can.
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Apr 2006
Posts: 3
Rep Power: 0
![]() |
Hi,
(((in client side))) first i think you put winsock control in array using indexes method so you 'll easily load new winsock by :- load winsock (conNum + 1) considering that conNum is the number of current connections made by winsock controls then you 'll send computer data like it's name or what else to the server application and include with it the computer (client) IP , don't forget to seperate them by a comma or what else then .... (((server side))) you'll accept this data normally using winsock controls in the server side and use this method to split the remote computer name and IP (client) :- Dim listarry listarry = Split(text2.text, vbCrLf) Dim i For i = 0 To UBound(listarry) List1.AddItem listarry(i) Next i but you have before this step to check if the recieved data contain the required IP that u want to display it's name or not or only sort them by IP or any method you want need any help in the reply , i'm waiting for u ! Yours, |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|