LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-01-2006, 02:02 PM   #1
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
best networking programming language


I know it's an odd question, but what programming language is best for networking purposes...
 
Old 05-01-2006, 02:15 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
For what purpose exactly? Java does a pretty neat job with Networking
 
Old 05-01-2006, 02:22 PM   #3
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Sockets are sockets and should be pretty much the same in any language (including Java).
 
Old 05-01-2006, 02:47 PM   #4
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by tuxdev
Sockets are sockets and should be pretty much the same in any language (including Java).
Agreed, but it would still be helpful to know what type of network programming is being considered, after all not all network programming would use sockets, (packet sniffers) and for well known tasks (web or database connections) some languages provide good wrapper functions.
 
Old 05-01-2006, 06:58 PM   #5
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843

Original Poster
Blog Entries: 1

Rep: Reputation: 30
It's for regular TCP sockets and UDP broadcasting.

thanks for the feedback
 
Old 05-01-2006, 09:32 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Personally I'd probably use Perl (without more info). It's got plenty of pre-written modules for socket handling, so you can concentrate on doing something with the data.
For low level stuff C would be the normal choice.
 
Old 05-02-2006, 10:15 AM   #7
krizzz
Member
 
Registered: Oct 2004
Location: NY
Distribution: Slackware
Posts: 200

Rep: Reputation: 30
You will get the most efficient app with C. If you have enough time and knowledge - use C! I'd choose Java only in the "Unknown platform - client side" case. Perl is not the bad choice for the server as well, however it's still the interpreted language if your server is powerfull enough.
 
Old 05-02-2006, 11:18 AM   #8
bcreane
LQ Newbie
 
Registered: Apr 2006
Posts: 5

Rep: Reputation: 0
multithreading ..

sockets are sockets. But not all languages support multithreading equally well. You don't mention whether you'll need more than one thread, but most network servers will use some sort of threading support to respond to multiple client requests. C/C++ wins in terms of efficiency, but the pthread library is not for the faint of heart. Java definitely has better support for synchronization and mutexes. However, in terms of high level functionality combined with adequate efficiency, why not python ("import threading").
 
Old 05-02-2006, 11:07 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Re Perl:

1. Threading is implemented as of 5.8 (in fact I've got/written a prog using threading and sockets in prodn).

2. Perl is not in fact interpreted; it's pseudo-compiled at startup into an executable env (see http://www.perl.com/doc/FMTEYEWTK/comp-vs-interp.html for details) and then that is run. At a guess I'd say you get 85-90% the speed of C, basically to the pt where the design/algoritm is the limitng factor, not the lang.
FYI my prog handles updating Radius accting for 5K+ cxns easily (I tested up to 20K, seemed just fine).

Nonetheless, you should pick the lang you are most comfortable with if it does threads & sockets.
 
  


Reply



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
which programming language is used to do tcp/ip programming?? gajaykrishnan Linux - Networking 9 12-21-2012 05:16 AM
Best programming language to use cudajaw Linux - Newbie 30 03-12-2005 04:09 AM
Which programming language top111 Linux - Newbie 8 08-22-2001 07:21 PM
Programming Language Colonel Panic Programming 9 08-10-2001 01:57 AM

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

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

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
Open Source Consulting | Domain Registration