From: John A. T. <ja...@ja...> - 2008-09-04 03:27:24
|
Brett Lentz wrote: > It seems that java.nio.SocketChannel is probably a better choice than > java.net.Socket. It seems like it's easier to manage multiple connections to > the same port more easily with a SocketChannel. I'm new to this part of the > Java API, but that's my first impression. > I think the only real difference is the buffering is more efficient in nio, but in either case I think you want a higher level API that can encapsulate same-machine via synchronized queues, between machines with sockets, between machines with some multicast protocol, etc. -- John A. Tamplin ja...@ja... 770/436-5387 HOME 4116 Manson Ave Smyrna, GA 30082-3723 |