473,385 Members | 1,324 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,385 software developers and data experts.

Winsock in VB

Hey,

I want to start using winsock in VB.NET, but cannot find anygood books on
it. No one has any. Did winsock get renamed, or does .NET now use something
else for internet stuff? Thanks.
Nov 20 '05 #1
6 10735
Hi,

You can use the System.Net.Sockets namespace. There is example code on
http://msdn.microsoft.com/vbasic/dow...es/default.asp that
illustrates it pretty well.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
Nov 20 '05 #2
There are a bunch of classes in the System.Net namespace that allow you to
use sockets and network protocols. Some actually get into a lot more detail
and are far more flexible than the activeX WinSock component, though I'm
sure some might argue they aren't as simple to use. Anyway, look up
System.Net and System.Net.Sockets. Lots of material and samples out there.
I'm sure you'll primarily be interested in the TCPListener/TCPClient
classes.

-Rob Teixeira [MVP]

"Donald" <St**************@cox.net> wrote in message
news:yviQb.28393$Mb7.8926@lakeread04...
Hey,

I want to start using winsock in VB.NET, but cannot find anygood books on
it. No one has any. Did winsock get renamed, or does .NET now use something else for internet stuff? Thanks.

Nov 20 '05 #3
In article <yviQb.28393$Mb7.8926@lakeread04>, Donald wrote:
Hey,

I want to start using winsock in VB.NET, but cannot find anygood books on
it. No one has any. Did winsock get renamed, or does .NET now use something
else for internet stuff? Thanks.


You'll want to look at the documentation for the System.Net and
System.Net.Sockets namespaces. There are also several examples on the
msdn website...

http://msdn.microsoft.com/library/de...ientsocket.asp

This will put you right in the middle of a whole section on sockets in
..NET :)
--
Tom Shelton [MVP]
OS Name: Microsoft Windows XP Professional
OS Version: 5.1.2600 Service Pack 1 Build 2600
System Up Time: 4 Days, 7 Hours, 52 Minutes, 41 Seconds
Nov 20 '05 #4
* "Donald" <St**************@cox.net> scripsit:
I want to start using winsock in VB.NET, but cannot find anygood books on
it. No one has any. Did winsock get renamed, or does .NET now use something
else for internet stuff?


Namespace 'System.Net.Sockets'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
Thanks a lot, helped me a great deal. :)
"Dick Grier" <di**************@msn.com> wrote in message
news:OY**************@tk2msftngp13.phx.gbl...
Hi,

You can use the System.Net.Sockets namespace. There is example code on
http://msdn.microsoft.com/vbasic/dow...es/default.asp that
illustrates it pretty well.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.

Nov 20 '05 #6
Also check here:

http://www.indyproject.org/indy.html

Its free and a lot more advanced as well as easier to use that the sockets
that come in .net. More protocols, more support, more everything.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 20 '05 #7

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

Similar topics

1
by: Niels Borg | last post by:
Hi, I'm writing app where I use WinSock, but I have experienced a problem. WinSock only sends the data after finishing the calling sub/function. Can I force WinSock immediately as I need to send...
4
by: Ophir | last post by:
Hello all ! I wrote a simple ActiveX DLL to wrap winsock functionality so I can use it in an ASP page. I call it MyWinSock In the Class module I use this declaration: Dim ctlSocket as...
1
by: Chris Thompson | last post by:
I'm trying to mess around with creating a multi-user server but I'm really clueless as to how to start. I don't know what I'd need to do, and more than likely it's over my head, but I'd still like...
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...
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...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.