Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 10th, 2006, 1:29 PM   #1
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
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.
bigguy is offline   Reply With Quote
Old Apr 27th, 2006, 5:34 PM   #2
AHHB.be
Newbie
 
Join Date: Apr 2006
Posts: 3
Rep Power: 0 AHHB.be is on a distinguished road
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,
AHHB.be is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:27 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC