Chapter3.Networking


Chapter 3. Networking

  • Connecting to a Server

  • Implementing Servers

  • Sending E-Mail

  • Making URL Connections

  • Advanced Socket Programming

We begin this chapter by reviewing basic networking concepts. We then move on to writing Java programs that connect to network services. We show you how to get information from a web server and how to send e-mail from a Java program. We conclude the chapter with a case study that combines an applet and a servlet to harvest information on the Internet.

In the first part of this chapter, we assume that you have no network programming experience. If you have written TCP/IP programs before and ports and sockets are no mystery to you, you should breeze through the sample code. Toward the end of this chapter, the code becomes complex and is geared more toward those with some experience in network programming.



    Core JavaT 2 Volume II - Advanced Features
    Building an On Demand Computing Environment with IBM: How to Optimize Your Current Infrastructure for Today and Tomorrow (MaxFacts Guidebook series)
    ISBN: 193164411X
    EAN: 2147483647
    Year: 2003
    Pages: 156
    Authors: Jim Hoskins

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net