Categories
discuss

AsyncSocket in java?

How can I implement an AsyncSocket in java (specificaly on android)?

How can I implement an AsyncSocket in java (specificaly on android)?

Answer

If you want to do non blocking io in java without having 1 or more threads per socket, you have to use the java NIO libraries. There are some wrappers around NIO that make it easier to use, netty is a good example.

Source: stackoverflow
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Privacy Policy, and Copyright Policy. Content is available under CC BY-SA 3.0 unless otherwise noted. The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 © No Copyrights, All Questions are retrived from public domain..