Lines Matching defs:size
374 public void setSendBufferSize(int size) throws SocketException {
375 // size 0 valid for SocketChannel, invalid for Socket
376 if (size <= 0)
377 throw new IllegalArgumentException("Invalid send size");
378 setIntOption(StandardSocketOptions.SO_SNDBUF, size);
385 public void setReceiveBufferSize(int size) throws SocketException {
386 // size 0 valid for SocketChannel, invalid for Socket
387 if (size <= 0)
388 throw new IllegalArgumentException("Invalid receive size");
389 setIntOption(StandardSocketOptions.SO_RCVBUF, size);