I am very new to this... I just started playing around with some network
programming. I really only use vb.net. I say that so I don't get the 'use
c/c++' answer. Programming is a hobby for me, not a career. I'm only
interested, at least right now, in playing around with vb.net and maybe some
c#.net. I'm not sure if this is the right
forum or not but...
my first question is to make sure I understand something:
1) the main difference between sockets or the higher level
tcpclient/udpclient etc.. classes is that the latter (derived from the
former) has fewer options/functionality and is synchronous only, for asynch
operation you would need to manage your own threads; AND the former
(sockets) has more options/functionality including their own asynch methods
(beginconnect, endconnect, etc..) which handle the multiple threads for you.
is this correct?
2) If my goal is to eventually right somewhat in depth and/or powerful
network programs should I even bother with the tcpclient/udpclient etc..
classes or should I just start with learning sockets directly?
any input on this would be greatly appreciated. thanks. 2 3317
I'm been struggling through sockets recently myself. This link might be
of help. http://www.catalyst.com/products/soc.../tcpdoc02.html
djc wrote: I am very new to this... I just started playing around with some network programming. I really only use vb.net. I say that so I don't get the 'use c/c++' answer. Programming is a hobby for me, not a career. I'm only interested, at least right now, in playing around with vb.net and maybe some c#.net. I'm not sure if this is the right forum or not but...
my first question is to make sure I understand something: 1) the main difference between sockets or the higher level tcpclient/udpclient etc.. classes is that the latter (derived from the former) has fewer options/functionality and is synchronous only, for asynch operation you would need to manage your own threads; AND the former (sockets) has more options/functionality including their own asynch methods (beginconnect, endconnect, etc..) which handle the multiple threads for you.
is this correct?
2) If my goal is to eventually right somewhat in depth and/or powerful network programs should I even bother with the tcpclient/udpclient etc.. classes or should I just start with learning sockets directly?
any input on this would be greatly appreciated. thanks.
I'll check it out. Thanks.
"cj" <cj@nospam.nosp am> wrote in message
news:e2******** ******@TK2MSFTN GP10.phx.gbl... I'm been struggling through sockets recently myself. This link might be of help.
http://www.catalyst.com/products/soc.../tcpdoc02.html
djc wrote: I am very new to this... I just started playing around with some network programming. I really only use vb.net. I say that so I don't get the
'use c/c++' answer. Programming is a hobby for me, not a career. I'm only interested, at least right now, in playing around with vb.net and maybe
some c#.net. I'm not sure if this is the right forum or not but...
my first question is to make sure I understand something: 1) the main difference between sockets or the higher level tcpclient/udpclient etc.. classes is that the latter (derived from the former) has fewer options/functionality and is synchronous only, for
asynch operation you would need to manage your own threads; AND the former (sockets) has more options/functionality including their own asynch
methods (beginconnect, endconnect, etc..) which handle the multiple threads for
you. is this correct?
2) If my goal is to eventually right somewhat in depth and/or powerful network programs should I even bother with the tcpclient/udpclient etc.. classes or should I just start with learning sockets directly?
any input on this would be greatly appreciated. thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike Dole |
last post by:
I'm working on a client - server application based on the 'How to
Sockets Server and How to Sockets Client' code from the Visual Basic
..NET Resource Kit.
Since I want to be able to send 'big strings' instead of 'one liners'
I check the streams for terminators.
I'm having problems with the connection, I've been looking and
debugging for 2 weeks now (debugging with an emulator is terribly
slow..) but I'm not getting it...
|
by: Laxmikant Rashinkar |
last post by:
Is there any way to use a C# socket in promiscuous mode?
Any sample code that shows how this is done?
any assistance is much appreciated!
thanks
LK
|
by: Torsten Brasch |
last post by:
Hi All and Happy New Year ;)
I have a very strange problem with System.Net.Sockets.TcpClient().
For some reason, the number of bytes I can receive is limited to 5460 bytes.
I made sure that the server really sends everything I expect it to send. I
am actually sending XML messages and this limit is a pain in the ...
Here is the code:
--------------------------------------------------------------------------
Dim tcpclient As New...
|
by: Sueffel |
last post by:
Boy, someday I may get good at this stuff! Until then, I have a "TCP
server" that accepts multiple connections. That all works wonderfully!
YEAH!!!! I have a TCPClient that is the client connection to my server, my
question is, how do I get the client's IP from tthe TCPClient so I can know
who is logged in? I have spent most of the day looking for this on-line and
can't find nuttin yet.
Thanks
Sueffel
|
by: BadOmen |
last post by:
Hi,
What is the different between 'System.Net.Sockets.Socket' and
'System.Net.Sockets.TcpClient'?
When do I use System.Net.Sockets.TcpClient and System.Net.Sockets.Socket??
Yours, Jonas
| |
by: J C |
last post by:
Hi,
I'm using UDPClient to make a simple DNS server. I notice that
intermittently and unpredictibly I get:
Unhandled Exception: System.Net.Sockets.SocketException: An existing
connection
was forcibly closed by the remote host
at System.Net.Sockets.Socket.ReceiveFrom(Byte buffer, Int32 offset,
Int32 s
|
by: eliss.carmine |
last post by:
I'm using TCP/IP to send a Bitmap object over Sockets. This is my first
time using C# at all so I don't know if this is the "right" way to do
it. I've already found out several times the way I was doing something
was really inefficient and could reduce 10 lines of code with 2, etc.
For reading, I am using a TcpClient and I call
NetworkStream ns = client.GetStream(); to get a stream
stream.Read(buffer, 0, buffer.Length);
|
by: James Mills |
last post by:
On Fri, Sep 19, 2008 at 6:24 AM, Fredrik Lundh <fredrik@pythonware.comwrote:
There is also one more alternative:
pymills - current version 3.4
It has a different design goal to twisted
and is in no competition with twisted,
however provides:
* An event framework
|
by: keithseah |
last post by:
Hi all,
i've been having this problem and its kiiling me! i'm a newbie at this so i hope someone would be able to help me.
picture link: http://i98.photobucket.com/albums/l272/rachelyeo/ErrorWebApplication2.jpg
this pops up whenever i click on the Disconnect button after i have connected.
these are the following codes for the program.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |