Code example for Socket

Methods: setReceiveBufferSize

0
    public int getSendBufferSize() throws SocketException { 
        return s.getSendBufferSize();
    } 
 
    public void setReceiveBufferSize(int size) throws SocketException {
        s.setReceiveBufferSize(size);
    } 
 
    public int getReceiveBufferSize() throws SocketException { 
        return s.getReceiveBufferSize();
    } 
 
    public void setKeepAlive(boolean on) throws SocketException {
        s.setKeepAlive(on);
    } 
 
    public boolean getKeepAlive() throws SocketException { 
        return s.getKeepAlive();
    } 
 
    public void setTrafficClass(int tc) throws SocketException {