Similar to WinSock  
Author Message
jjaworow





PostPosted: Mon Apr 25 20:14:51 CDT 2005 Top

Visual Basic [VB] >> Similar to WinSock

Hi.
Does .NET have something Similar to WinSock ocx?
I reviewed System.Net.Sockets. It works good, but I really like event
'DataArrival' that old WinSock have.

Thanks,

Visual Studio285  
 
 
Tom





PostPosted: Mon Apr 25 20:14:51 CDT 2005 Top

Visual Basic [VB] >> Similar to WinSock
> Hi.
> Does .NET have something Similar to WinSock ocx?
> I reviewed System.Net.Sockets. It works good, but I really like event
> 'DataArrival' that old WinSock have.

Use System.Net.Sockets in Async mode...

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

Pay attention to the parts about async sockets. Basically, you use
BeginRead - and when there is data available, it calls an application
defined callback function.

--
Tom Shelton [MVP]
 
 
ValK





PostPosted: Tue Apr 26 08:21:02 CDT 2005 Top

Visual Basic [VB] >> Similar to WinSock Tom,
Thank you for advice.
I reviewed some docs, but didn't find any good examples yet. I really want
to understand how this thing works.

ValK




> > Hi.
> > Does .NET have something Similar to WinSock ocx?
> > I reviewed System.Net.Sockets. It works good, but I really like event
> > 'DataArrival' that old WinSock have.
>
> Use System.Net.Sockets in Async mode...
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconsockets.asp
>
> Pay attention to the parts about async sockets. Basically, you use
> BeginRead - and when there is data available, it calls an application
> defined callback function.
>
> --
> Tom Shelton [MVP]
>