Basic HTML version of Foils prepared June 5 99

Foil 67 Sockets for Network Communication

From Java Language in the Computer Science Curriculum ADMI Tutorial Duluth Minnesota -- June 3 99. by Geoffrey C. Fox


1 A java applet, which is downloaded from a web server host, can connect via a network socket to any port on the same machine. This could be a java application acting as a server.
2 Java applications can connect network sockets to any host machine on the Internet
  • Socket t = new Socket("internet host name", port)
  • sockets have methods to open input and output streams
3 web server host machine
4 browser
5 Applet is downloaded
6 from web server
7 applet
8 Internet
9 80
10 nnnn
11 web
12 server
13 Java
14 application
15 Socket based on
16 TCP/IP protocol

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Jun 5 1999