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.
Socket myclientsocket = new Socket("ironbark", 79);
Lecture 9: Socket Programming Interface | Copyright © 2005 P.Scott, La Trobe University Bendigo. |