Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23490 > unrolled thread

which is best java library for socket programming

Started byDeepakS <deepak.pucsd@gmail.com>
First post2013-04-17 13:43 -0700
Last post2013-04-18 12:54 -0700
Articles 5 — 5 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  which is best java library for socket programming DeepakS <deepak.pucsd@gmail.com> - 2013-04-17 13:43 -0700
    Re: which is best java library for socket programming markspace <markspace@nospam.nospam> - 2013-04-17 14:07 -0700
      Re: which is best java library for socket programming Lew <lewbloch@gmail.com> - 2013-04-17 14:18 -0700
    Re: which is best java library for socket programming Arne Vajhøj <arne@vajhoej.dk> - 2013-04-17 18:59 -0400
    Re: which is best java library for socket programming Roedy Green <see_website@mindprod.com.invalid> - 2013-04-18 12:54 -0700

#23490 — which is best java library for socket programming

FromDeepakS <deepak.pucsd@gmail.com>
Date2013-04-17 13:43 -0700
Subjectwhich is best java library for socket programming
Message-ID<1b11ef75-ae3b-416f-ac39-26716e171982@googlegroups.com>
Please let me know which is best java library for socket programming ?

[toc] | [next] | [standalone]


#23491

Frommarkspace <markspace@nospam.nospam>
Date2013-04-17 14:07 -0700
Message-ID<kkn2pp$vc$1@dont-email.me>
In reply to#23490
On 4/17/2013 1:43 PM, DeepakS wrote:
> Please let me know which is best java library for socket programming ?
>

<http://docs.oracle.com/javase/tutorial/networking/sockets/>

[toc] | [prev] | [next] | [standalone]


#23492

FromLew <lewbloch@gmail.com>
Date2013-04-17 14:18 -0700
Message-ID<d4ffabc0-23f1-43a8-b25f-ddc1d1a57934@googlegroups.com>
In reply to#23491
markspace wrote:
> DeepakS wrote:
>> Please let me know which is best java [sic] library for socket programming ?

What makes "best"?

There are many criteria of goodness, some of which are mutually exclusive. Which 
ones apply here?

> <http://docs.oracle.com/javase/tutorial/networking/sockets/>

From which we read:
"The java.net package provides two classes--Socket and ServerSocket--that implement the client side of the connection and the server side of the connection, respectively."

These are great for socket programming, but rather low level. 

Do you have needs for more than raw socket programming?

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#23493

FromArne Vajhøj <arne@vajhoej.dk>
Date2013-04-17 18:59 -0400
Message-ID<516f293b$0$32108$14726298@news.sunsite.dk>
In reply to#23490
On 4/17/2013 4:43 PM, DeepakS wrote:
> Please let me know which is best java library for socket programming ?

For raw sockets and simple stuff, then Java comes with all
you need (java.net/java.io/java.nio).

If you need more complex stuff then look at http://netty.io/
or http://mina.apache.org/.

If you just need to support common high level protocols
then look at http://hc.apache.org/ or 
http://commons.apache.org/proper/commons-net/.

Arne

[toc] | [prev] | [next] | [standalone]


#23510

FromRoedy Green <see_website@mindprod.com.invalid>
Date2013-04-18 12:54 -0700
Message-ID<lpj0n8tfgagt0b3oile196e6imb5e3d76r@4ax.com>
In reply to#23490
On Wed, 17 Apr 2013 13:43:35 -0700 (PDT), DeepakS
<deepak.pucsd@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>Please let me know which is best java library for socket programming ?

see http://mindprod.com/jgloss/http.html

It will point you to some. I wrote a lightweight one called HTTP.
Apache as a fat one called HTTPClient
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Computer programming is the best remedy for pain (physical or emotional) 
I have encountered. It requires so much concentration there is nothing left 
over to pay attention to the pain. They should teach this in AA.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web