Winsock equivalent?

D

Daniel

Hi group,

In VB6 if I wanted my app to listen on a specific IP port I used the
Winsock control along with the great example code on MSDN.

Now, for .NET I assume that there is a class for this. Can anyone point
me in the right direction on how to do this? I want my app to listen on
a port and act upon instructions that I send it from another .NET app I
am writing. Example code would be great as well!

I have googled but the examples I find are not that good or are very
complicated.
 
D

Daniel

Crouchie1998 said:
Daniel,

Use the 'Socket' Class

Crouchie1998
BA (HONS) MCP MCSE
Thanks, I have been looking at this class but not with much success. I
was hoping someone had some code I could look at...?
 
C

Crouchie1998

If you go to http://www.google.com & type in "Sockets, "VB.NET" (with quotes
& comma) you will find many examples

http://support.microsoft.com/default.aspx?scid=kb;en-us;828993 (ping)

http://support.microsoft.com/default.aspx?scid=kb;en-us;821768 (how to
program MS Sockets Interface & the Network Connections)

http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 (FTP using
sockets)

Main sites to try are:

http://www.planet-source-code.com (make sure you select .NET from the
dropdownlist) & click the button not pressing enter, as they used to return
nothing with enter being clicked. After 5 downloads it will ask you to
register. If you don't want to, just delete the 'vb' cookie, refresh the
page & download another 5...

http://www.codeproject.com/ (needs free registration to download anything -
great site)

http://www.gotdotnet.com/community/usersamples/ (has a fantastic VB.NET
forum too
(http://www.gotdotnet.com/Community/MessageBoard/MessageBoard.aspx?id=8).
This site is also run by Microsoft. You will need to login with your
passport to post messages, but the downloads are free access)

If you are looking for SSL then there is only one piece of code that I know
of on the Internet, which is in C#, but is FREE & that is available here:

http://www.mentalis.org/soft/projects/seclib/download.qpx

I am sorry that I cannot be of any more help now because I just don't have
the time

Crouchie1998
BA (HONS) MCP MCSE
 
D

Daniel

Crouchie1998 said:
If you go to http://www.google.com & type in "Sockets, "VB.NET" (with quotes
& comma) you will find many examples

http://support.microsoft.com/default.aspx?scid=kb;en-us;828993 (ping)

http://support.microsoft.com/default.aspx?scid=kb;en-us;821768 (how to
program MS Sockets Interface & the Network Connections)

http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 (FTP using
sockets)

Main sites to try are:

http://www.planet-source-code.com (make sure you select .NET from the
dropdownlist) & click the button not pressing enter, as they used to return
nothing with enter being clicked. After 5 downloads it will ask you to
register. If you don't want to, just delete the 'vb' cookie, refresh the
page & download another 5...

http://www.codeproject.com/ (needs free registration to download anything -
great site)

http://www.gotdotnet.com/community/usersamples/ (has a fantastic VB.NET
forum too
(http://www.gotdotnet.com/Community/MessageBoard/MessageBoard.aspx?id=8).
This site is also run by Microsoft. You will need to login with your
passport to post messages, but the downloads are free access)

If you are looking for SSL then there is only one piece of code that I know
of on the Internet, which is in C#, but is FREE & that is available here:

http://www.mentalis.org/soft/projects/seclib/download.qpx

I am sorry that I cannot be of any more help now because I just don't have
the time

Crouchie1998
BA (HONS) MCP MCSE

8:)

Wow! thanks for the effort. 100% useful the whole lot!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top