Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Client Server Guidance Needed

Status
Not open for further replies.

DMAN3021

Programmer
Aug 20, 2002
40
CA
I'm trying to build a Client Server App in VB.Net.

Basically, the client will log onto the server, ask for things, receive things, and then disconect once its done. Both the Client and Server apps will not share any resources and will transmit messages using a certain port over the Net.

Now I know this is possible (well I sure hope it is anyways), but do not know how to do it. Can someone please point me to instructions on how to build this kind of app?

Thanks!

Dman...
 
Any Idea on this?

I can't seem to find a simple text that will explain how to build a simple Client Server application with VB.

Plz Help!

Dman...
 
Well, you can use the TcpListener and TcpClient objects to get the results you want.

First you'd have to set up a TcpListener on the server and tell it to accept incoming to a TcpClient object.
Send the messages back and forth using the tcpclient object, and when disconnected have it cycle back to listening again.

On the client you only have to use the TcpClient object to connect to the server.

The MSDN has examples of uses for both objects. I'd suggest a look there as I can't remember offhand the some code examples, but I hope this helps.
 
Thanks Borv, this seems to be a good start (compared to what I had before), I'll get working on it and see what I can do!

Dman...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top