Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-11-2006, 04:05 AM   #1
LQ Newbie
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
How to optimize receiving in a TCP socket?

I have an application (C Linux), my internet bandwidth is ~12Mbps. My app will recv huge data - quotes from ARCA, BRUT, INET Books (ECN) through TCP sockets. I used default socket options. What can the socket options increase the performance of TCP socket? Please give for me some suggestions.

Thanks in advance!

Last edited by minhsangniit; 03-11-2006 at 04:12 AM.
Old 03-11-2006, 09:48 AM   #2
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145

Rep: Reputation: 15
How big is the data you are receiving? Is it larger then about 1024 bytes (that is usually the size of the TCP buffer). Also how fast is this data coming in?
Old 03-12-2006, 07:31 PM   #3
LQ Newbie
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Data coming in speed ~1.5MB/s. Per message will have length ~50bytes.

Last edited by minhsangniit; 03-12-2006 at 07:34 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
recv() fails, tcp dump says i'm receiving isakmp packets rdarbin Linux - Networking 0 12-21-2005 12:06 PM
socket pogramming(TCP) hubabuba Programming 4 10-24-2005 11:14 PM
Linux TCP Socket swa_dur Linux - Networking 3 09-23-2005 11:03 AM
Only receiving UDP packets, no TCP erevlehdeux Linux - Networking 1 04-23-2004 07:36 PM
Receiving all data from socket Ohmu Programming 6 03-08-2004 01:58 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration