Package gda.io.socket
Class SimpleSock
java.lang.Object
gda.io.socket.SimpleSock
An ethernet network class. This class was moved from experimental specific areas into
gda.io. It is
used to write and read strings from a socket.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleSock
public SimpleSock()
-
-
Method Details
-
init
public void init(String address, int port) throws IOException, UnknownHostException, ConnectException Initialise the connection- Parameters:
address-port-- Throws:
IOExceptionUnknownHostExceptionConnectException
-
write
Write a string into the socket- Parameters:
s-- Throws:
IOException
-
read
Read a 64 byte block from the socket.- Returns:
- String
- Throws:
IOException
-