How to create a client server app

  • Thread starter Thread starter Matt
  • Start date Start date
M

Matt

Hello,

I'm just recently moved up to .NET, and because in my old
networked applications I used the Winsock control which
vb.net doesnt support naturally, i dont want to use it
anymore. So, I was poking around in the standard objects
stuff, and i found that you can use the system objects
supports sockets. i got very excited about this, and then
i relized that it didnt provide support for listening to
see if you have a new message in the buffer... does
anyone know how to create it so that it works like the old
winsock control...

thanks in advance
matt
 
Hi Matt,

Don't know very much about the winsock control in vb 6, but can't you use it
as a com object using interop services? A bit 'non-managed', but you'd get
all the functionality you're used to in this fashion.

HTH,

Bernie Yaeger
 
Thats not really what Im after, I hated the winsock
control. So what I'm really asking is how to do
networking in VB.NET. I could use the winsock control,
but i'll only do that as a last resort because not many
computers actually have the DLL's and OCX's need to run
it...

matt
 
Hello,

I'm just recently moved up to .NET, and because in my old
networked applications I used the Winsock control which
vb.net doesnt support naturally, i dont want to use it
anymore. So, I was poking around in the standard objects
stuff, and i found that you can use the system objects
supports sockets. i got very excited about this, and then
i relized that it didnt provide support for listening to
see if you have a new message in the buffer... does
anyone know how to create it so that it works like the old
winsock control...

thanks in advance
matt

Basically, your wanting the events... Well, you basically can get that
using asyncronous sockets in .NET. A good staring point for information
on using sockets in .NET is here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconsockets.asp
 
Back
Top