473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Winsock equivalent?

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.

--

Daniel
MCSE, MCP+I, MCP in Windows 2000/NT

--------------------------------------
remove the 2nd madrid from my mail address to contact me.
Nov 21 '05 #1
5 2867
Daniel,

Use the 'Socket' Class

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #2
Crouchie1998 wrote:
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...?

--

Daniel
MCSE, MCP+I, MCP in Windows 2000/NT

--------------------------------------
remove the 2nd madrid from my mail address to contact me.
Nov 21 '05 #3
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...b;en-us;828993 (ping)

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

http://support.microsoft.com/default...b;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/M...ard.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/project...b/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
Nov 21 '05 #4
Crouchie1998 wrote:
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...b;en-us;828993 (ping)

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

http://support.microsoft.com/default...b;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/M...ard.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/project...b/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!

--

Daniel
MCSE, MCP+I, MCP in Windows 2000/NT

--------------------------------------
remove the 2nd madrid from my mail address to contact me.
Nov 21 '05 #5
Daniel <da****@madridmadridsoleado.com> wrote in news:#70B3JjdFHA.2420
@TK2MSFTNGP15.phx.gbl:
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.


http://www.indyproject.org/

Free, and there are VB samples too.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bill | last post by:
When vb6 Winsock.RemoteHost is set to "127.0.0.1", c# socket listener cannot hear connect request (my old vb6 winsock listener could hear it...). Why doesn't this work, and is there a work...
1
by: Yu Chai | last post by:
Hi guys, I created a ASP page that 1. users can run when WinSock proxy are using (ie's one is unchecked) 2. users can't run when WinSock proxy are using (ie's one is checked) 3. users can't run...
8
by: Richy | last post by:
Hi, I'm using a winsock active-x component in a C# program. I can send data using the following: byte buffer = new byte; axWinsock1.SendData( buffer); But to receive isn't as easy.
7
by: Nadav | last post by:
Hi I am writing some kind of a storage system that have to deal with large amounts of data passing over the net, Now, I Wonder... traditional programming would use win32 Winsock DLL as the means...
2
by: Mike P | last post by:
What is the equivalent of the VB6 Winsock control in C#? I'm looking at converting some code from VB6 to C# (see below). Does anybody know how I would do this? tcpSendData.RemoteHost =...
5
by: kc | last post by:
Hi Just upgrading a app from VB6 to VB.Net. All is going well apart from the Winsock control. The first thing we notice is that there does not appear to be a .Net version (please correct me if...
1
by: Nicolas Ghesquiere | last post by:
Hello I have a problem with my current program. The meaning of the program is to allow users to login to a server to allow them to access the internet. My program communicates with a MS isa...
4
by: imaloner | last post by:
I am posting two threads because I have two different problems, but both have the same background information. Common Background Information: I am trying to rebuild code for a working,...
3
AaronL
by: AaronL | last post by:
Hello, I am currently working on a project that has me in sort of a bind. What I want to do is retrieve web pages from the internet, and strip them down to just text. I'll get using Regular...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.