Explain sockets?
Explain sockets?
Explain sockets?
Explain sockets?
Explain sockets?
Explain sockets? Explain sockets? Explain sockets? Explain sockets? Explain sockets? Explain sockets? Explain sockets? Explain sockets?
Explain sockets? Explain sockets?
Explain sockets?
Go Back  Xtreme Visual Basic Talk > > > Explain sockets?


Reply
 
Thread Tools Display Modes
  #1  
Old 11-23-2004, 06:01 PM
elnerdo's Avatar
elnerdo elnerdo is offline
Contributor
 
Join Date: Jul 2004
Location: Northern New Jersey
Posts: 490
Default Explain sockets?


I have no idea how do even start with sockets, I don't really get MSDN, can someone explain the basics of sockets?
__________________
nerds unite!
Reply With Quote
  #2  
Old 11-24-2004, 02:59 AM
excaliber's Avatar
excaliberExplain sockets? excaliber is offline
Senior Contributor

* Expert *
 
Join Date: Nov 2002
Location: Ohio, USA
Posts: 1,828
Default

Think of a socket as a power cord. There are two plugs, one on each end. The plugs are connected by a wire. Each plug on the power cord represents a socket, while the wire represents the internet.

For a more technically accurate version:
A socket is created for the purpose of communicating. A socket is opened up on a specific port and is instructed to connect to another machine. You can have multiple sockets connecting to one port, but only one socket listening on any port (listening is the act of passively waiting for incoming connections)
__________________
RandomIRC - Your neighborhood's friendly IRC channel (irc.randomirc.com - #code)

"Perl - The only language that looks the same before and after RSA encryption."
Reply With Quote
  #3  
Old 11-25-2004, 06:15 PM
blindreaper666's Avatar
blindreaper666 blindreaper666 is offline
Junior Contributor
 
Join Date: Aug 2004
Posts: 317
Default

Well MSDN has the best socket references and it was very helpful to me. MSDN can be confusing but this should take you right to the socket class page: http://msdn.microsoft.com/library/de...ClassTopic.asp
Reply With Quote
  #4  
Old 11-25-2004, 06:26 PM
blindreaper666's Avatar
blindreaper666 blindreaper666 is offline
Junior Contributor
 
Join Date: Aug 2004
Posts: 317
Default

Also that was a good explaination of a socket but here is another analogy that may be easier to picture. Think of a socket as a USB port on your computer. It is constantly checking for a connection and when you plug in a device it can connect with that device because it is now part of your computer system and the device can talk with the port and you can transfer files or data between the device and your computer. Think of the USB cord, or in some cases, the wireless radio waves as the world wide web and the USB device as the computer that you connect to through the socket. You can connect many devices through one usb port with a hub but it is still a single port but can communicate with many devices. Think or multiple USB ports as multiple ports of a socket. You will probably not have 30,000+ USB ports on your computer but a socket does. Different ports can communicate with different devices. Typically port 80 is used for the web and I think port 25 is used for email so you can recieve data from both sources on different ports at the same time just like you can communicate with multiple USB devices on your computer at the same time. There really isn't a very easy way to explain it but in simplest terms, a socket is your connection to the world's network
Reply With Quote
  #5  
Old 11-26-2004, 04:35 PM
elnerdo's Avatar
elnerdo elnerdo is offline
Contributor
 
Join Date: Jul 2004
Location: Northern New Jersey
Posts: 490
Default

hmm.. thanks!
__________________
nerds unite!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Explain sockets?
Explain sockets?
Explain sockets? Explain sockets?
Explain sockets?
Explain sockets?
Explain sockets? Explain sockets? Explain sockets? Explain sockets? Explain sockets? Explain sockets? Explain sockets?
Explain sockets?
Explain sockets?
 
Explain sockets?
Explain sockets?
 
-->