LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-04-2012, 02:21 PM   #1
Neuzen
Member
 
Registered: Jun 2007
Distribution: Slackware, Gentoo, Debian
Posts: 36

Rep: Reputation: 16
Looking for a TCP server for high performances


Hi all,

I'm looking for a TCP server project that can handle many connections at once.
it is best if the project is implemented in C.

If someone know of such a project please let me know.

Thanks for the help,
 
Old 01-05-2012, 12:27 PM   #2
goncalopp
Member
 
Registered: Jun 2008
Posts: 47

Rep: Reputation: Disabled
It would help to know exactly what you mean by "TCP server". You mean an HTTP server? an FTP server? A simple program that accepts connections and closes them, doing nothing in between?
What exactly are you attempting to do?
 
Old 01-05-2012, 05:34 PM   #3
Neuzen
Member
 
Registered: Jun 2007
Distribution: Slackware, Gentoo, Debian
Posts: 36

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by goncalopp View Post
It would help to know exactly what you mean by "TCP server". You mean an HTTP server? an FTP server? A simple program that accepts connections and closes them, doing nothing in between?
What exactly are you attempting to do?
Hi goncalopp,
as you said, "A simple program that accepts connections and closes them, doing nothing in between" just handling a lot of connections, maybe the only thing I need is to see the incomming data, and at the other side I will add the option to send replies using scripts.
Thanks,
 
Old 01-06-2012, 03:58 AM   #4
goncalopp
Member
 
Registered: Jun 2008
Posts: 47

Rep: Reputation: Disabled
Your description sounds like netcat. But you probably know that. Also, netcat is not multithreaded, so it won't accept concurrent connections.

While I don't know such a tool myself, I found a thread discussing a similar problem. The response about ucspi-tcp / tcpserver might be what you're looking for.
 
Old 01-06-2012, 07:54 AM   #5
Neuzen
Member
 
Registered: Jun 2007
Distribution: Slackware, Gentoo, Debian
Posts: 36

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by goncalopp View Post
Your description sounds like netcat. But you probably know that. Also, netcat is not multithreaded, so it won't accept concurrent connections.

While I don't know such a tool myself, I found a thread discussing a similar problem. The response about ucspi-tcp / tcpserver might be what you're looking for.
Yes, I know netcat, it is a nice tool, but not what I'm looking for, I'm looking for something more like GNU MyServer but just for TCP, I want to build the protocol stuck myself (on top of TCP protocol).
 
Old 01-07-2012, 07:45 AM   #6
goncalopp
Member
 
Registered: Jun 2008
Posts: 47

Rep: Reputation: Disabled
Did you try ucspi-tcp / tcpserver?
If you just want to have some scripts reply to predefined responses, I think it will suffice.

If, however, you want to do more than a stateless protocol, you're going to need a programming language that supports sockets (like C, C++, Java, Python, Ruby, etcetera) and you might as well do the sending/receiving/threading: it's such a small portion of the overall code that I doubt there will be frameworks for that - unless you're looking into a well defined protocol like HTTP, in which case there are thousands of them.
 
  


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
qt tcp client, C tcp server deadeyes Programming 3 09-04-2011 10:23 AM
High TCP connect timeout rate! shan_nathan Solaris / OpenSolaris 2 10-24-2008 04:07 PM
How-To Enable TCP high performance extensions SlackN00b Slackware 0 01-10-2004 08:05 PM
High I/O Wait times and TCP buffers? oswald21 Linux - General 0 08-26-2003 10:22 AM


All times are GMT -5. The time now is 02:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration