Code example for Socket

Methods: getSoTimeout

0
    public void setSoTimeout(int timeout) throws SocketException {
        s.setSoTimeout(timeout);
    } 
 
    public int getSoTimeout() throws SocketException { 
        return s.getSoTimeout();
    } 
 
    public void setSendBufferSize(int size) throws SocketException {
        s.setSendBufferSize(size);
    } 
 
    public int getSendBufferSize() throws SocketException { 
        return s.getSendBufferSize();
    } 
 
    public void setReceiveBufferSize(int size) throws SocketException {
        s.setReceiveBufferSize(size);
    } 
 
    public int getReceiveBufferSize() throws SocketException {