Code example for Socket

Methods: setReceiveBufferSize

0
        socket.setSendBufferSize(size);
    } 
 
    @Override 
    public void setReceiveBufferSize(int size) throws SocketException {
        socket.setReceiveBufferSize(size);
    } 
 
    @Override 
    public boolean getTcpNoDelay() throws SocketException { 
        return socket.getTcpNoDelay();
    } 
 
    @Override 
    public boolean getReuseAddress() throws SocketException { 
        return socket.getReuseAddress();
    } 
 
    @Override 
    public boolean getOOBInline() throws SocketException { 
        return socket.getOOBInline();