PC Review


Reply
Thread Tools Rate Thread

Re: .NET and Sockets

 
 
Dick Grier
Guest
Posts: n/a
 
      3rd Feb 2004
Hi,

I don't know, specifically.

You will have to do some coding and testing to see if network latency
(includes EVERYTHING, not just the underlying TCP/IP, but other layers, too)
affects your application. I haven't seen a big problem with small packets
myself. However, I have had some applications where is do something like
Nagle in my own software (I use a 50 mS timer), just to reduce my own
packetization/de-packetization overhead.

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.


 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2V2aW4gWiBHcmV5?=
Guest
Posts: n/a
 
      4th Feb 2004
listen_socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, true)

Disables Nagle algorithm. If you're sending small packets, you might benefit from this

~~K
 
Reply With Quote
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      4th Feb 2004
=?Utf-8?B?S2V2aW4gWiBHcmV5?= <(E-Mail Removed)> wrote
in news:83CD11F8-D202-45A8-94F5-(E-Mail Removed):
> Disables Nagle algorithm. If you're sending small packets, you might
> benefit from this.


1) Should have no effect on UDP since UDP is packet based anyways.

2) NEVER turn off Nagle unless you REALLY REALLY know what you are doing. In
99% of the cases performance will be WORSE.


--
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

 
Reply With Quote
 
Dick Grier
Guest
Posts: n/a
 
      4th Feb 2004
Hi Kevin,

Good info.

Thanks, 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Async sockets vs synch sockets and threads nyhetsgrupper@gmail.com Microsoft C# .NET 4 20th Sep 2006 05:06 AM
Threads with Sockets in them? or Asynchronous Sockets? Ronodev.Sen@gmail.com Microsoft C# .NET 2 22nd Feb 2006 07:39 PM
Re: Sockets Server / Sockets Client - unable to read data from the transport connection m_doolio@hotmail.com Microsoft Dot NET 0 27th Jul 2004 11:15 PM
Sockets Server / Sockets Client - unable to read data from the transport connection Mike Dole Microsoft Dot NET 4 6th Jun 2004 08:18 PM
Sockets Server / Sockets Client - unable to read data from the transport connection Mike Dole Microsoft VB .NET 4 6th Jun 2004 08:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:39 PM.