Socket myclientsocket = new Socket("ironbark", 80);
accept()
socket method in Java indicate
that a TCP connection has been established?
getInetAddress()
and, to a lesser extent
getPort()
, methods are probably more useful for a socket
in a server program than in a client. Why?
redgum
. How are
each of these connections uniquely identified?
connect()
for a client socket and
bind()
followed by accept()
for a
server. How does this compare with the Java approach?