简体   繁体   中英

Is there any for good Java lib for playing with Sockets connections?

搜索良好的Java库以使用套接字连接-是否有这样的库或如何使用纯Java的套接字进行播放?

The Java Tutorial is the best place to start. You'll probably want the All About Sockets section. Then, of course, there's the JavaDoc for the java.net package.

What kind of playing are you wanting to do with sockets? The java.net package (part of standard Java) contains several classes for dealing with sockets, most notably the Socket class.

You might want to try Apache MINA which is easier to start with. MINA provides a good abstraction level for working with sockets, here an example of a time server with a few lines of code using it.

You need to check Java Tutorial if you want fully understand Java approach though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM