Socket myclientsocket = new Socket("ironbark", 79);
This creates a new Socket object which is associated with a TCP
(ie, reliable) connection to port 79 on ironbark. The newly created
socket can be used as both an input and output
stream, see next slide. | Lecture 8: Socket Programming Interface | Copyright © 2003 P.Scott, La Trobe University Bendigo. |