Code example for Socket

Methods: getReceiveBufferSize

0
    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 {
        s.setTrafficClass(tc);
    } 
 
    public int getTrafficClass() throws SocketException {