Sockets: Simple Usage
We can therefore create a simple Socket with:
Socket s = new Socket (“acme.gatech.edu”, 13);
We can obtain a Stream for receiving information with:
InputStream in = s.getInputStream();
We can obtain a stream for sending information with:
OutputStream out = s.getOutputStream();