2.5. Java Networking Considerations

The range of networking classes provided by Java makes it an ideal language for network programming. Having been designed from the ground up to support networking, developers will find Java a far easier language to work with than, for example, C or C++. There are no annoying data structures and pointers to worry about, nor is there a need to change networking libraries when moving from a Wintel platform to Unix. That said, there are some unique considerations and restrictions relative to Java of which developers must be mindful.

First, readers should be aware that Java does not provide low-level access to Internet protocols. Some languages make it possible to write raw IP datagrams and to send ICMP messages. ...

Get Java™ Network Programming and Distributed Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.