Copyright © 2001 Qusay H. Mahmoud
37
Opening a socket
l
Client-side:
l
l
Socket myClient = null;
try {
MyClient = new Socket(host, PotNumber);
} catch (UnknownHostException uhe) {
uhe.printStackTrace();
}
l
host can be symbolic name or IP address