i want to make syber cafe in c sharp
in visual basic 6 i think you can work with tool its name winsock
but i want to do with c #
thanks
Printable View
i want to make syber cafe in c sharp
in visual basic 6 i think you can work with tool its name winsock
but i want to do with c #
thanks
Welcome to the forums. :wave:
See if this helps.
.NET does support COM interop so you can use the old Winsock control if you want, but I'd recommend against it. All the functionality you need is in the .NET Framework. As elsewhere in the Framework though, the "single responsibility principle" has been applied. By that I mean that the functionality previously encapsulated in a single ActiveX control has now been spread over multiple classes, all of which have a single responsibility, i.e. area of functionality. You should look at the System.Net.Sockets namespace, where you'll find the TcpListener, TcpClient and Socket classes. If you search the web you'll find many examples of their use.
Another point to note is that, if I'm not mistaken, that Winsock control is actually part of VB6, so you'll need some sort of VB6 installation to be able to use it. I'm not sure whether the VB6 runtime files would be enough or you'd actually need to install VB6 itself, but I think you'll need to install something extra.
thanks