LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-11-2006, 05:05 AM   #1
minhsangniit
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 05:12 AM.
 
Old 03-11-2006, 10:48 AM   #2
FLLinux
Member
 
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, 08:31 PM   #3
minhsangniit
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 08:34 PM.
 
  


Reply


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 01:06 PM
socket pogramming(TCP) hubabuba Programming 4 10-25-2005 12:14 AM
Linux TCP Socket swa_dur Linux - Networking 3 09-23-2005 12:03 PM
Only receiving UDP packets, no TCP erevlehdeux Linux - Networking 1 04-23-2004 08:36 PM
Receiving all data from socket Ohmu Programming 6 03-08-2004 02:58 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:08 AM.

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