Tutorial Java Applet: TCP Applets

TCP is the "Transmission Control Protocol", the reliable stream protocol which Internet builds on top of its basic unreliable datagram delivery service: TCP takes care of making sure that each packet gets retransmitted until it is acknowledged, matching packet transmission rate to the current capacity of the link and similar good stuff. The vast majority of traffic on the Internet travels over TCP connections, including email and web pages and remote login sessions (using protocols built in turn on top of TCP, respectively SMTP, HTTP and TELNET).


SampleTCPDate: Skeletal code to read date from server via TCP

You need a Java-enabled browser to view this.

Java source:SampleTCPDate.java
HTML source:SampleTCPDate.html


TCPDate: Read date from server via TCP

You need a Java-enabled browser to view this.

Java source:TCPDate.java
HTML source:TCPDate.html