Searched refs:SO_RCVBUF (Results 1 - 25 of 39) sorted by relevance

12

/openjdk7/jdk/test/java/nio/channels/ServerSocketChannel/
H A DSocketOptionTests.java54 if (!options.contains(SO_RCVBUF))
55 throw new RuntimeException("SO_RCVBUF should be supported");
58 ssc.setOption(SO_RCVBUF, 256*1024); // can't check
59 int before = ssc.getOption(SO_RCVBUF);
60 int after = ssc.setOption(SO_RCVBUF, Integer.MAX_VALUE).getOption(SO_RCVBUF);
62 throw new RuntimeException("setOption caused SO_RCVBUF to decrease");
/openjdk7/jdk/src/share/classes/java/net/
H A DSocketOptions.java294 public final static int SO_RCVBUF = 0x1002; field in interface:SocketOptions
H A DStandardSocketOptions.java155 public static final SocketOption<Integer> SO_RCVBUF = field in class:StandardSocketOptions
156 new StdSocketOption<Integer>("SO_RCVBUF", Integer.class);
H A DAbstractPlainDatagramSocketImpl.java286 case SO_RCVBUF:
291 "SO_RCVBUF");
338 case SO_RCVBUF:
H A DServerSocket.java788 * Sets a default proposed value for the SO_RCVBUF option for sockets
794 * The value of SO_RCVBUF is used both to set the size of the internal
828 getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size));
832 * Gets the value of the SO_RCVBUF option for this <tt>ServerSocket</tt>,
838 * @return the value of the SO_RCVBUF option for this <tt>Socket</tt>.
849 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF);
H A DAbstractPlainSocketImpl.java244 case SO_RCVBUF:
248 "or SO_RCVBUF");
305 case SO_RCVBUF:
H A DDatagramSocket.java949 * Sets the SO_RCVBUF option to the specified value for this
950 * <tt>DatagramSocket</tt>. The SO_RCVBUF option is used by the
952 * network I/O buffers. The SO_RCVBUF setting may also be used
956 * Because SO_RCVBUF is a hint, applications that want to
960 * Increasing SO_RCVBUF may allow the network implementation
965 * than SO_RCVBUF can be received.
983 getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size));
987 * Get value of the SO_RCVBUF option for this <tt>DatagramSocket</tt>, that is the
990 * @return the value of the SO_RCVBUF option for this <tt>DatagramSocket</tt>
999 Object o = getImpl().getOption(SocketOptions.SO_RCVBUF);
[all...]
/openjdk7/jdk/test/java/nio/channels/DatagramChannel/
H A DSocketOptionTests.java53 List<? extends SocketOption<?>> expected = Arrays.asList(SO_SNDBUF, SO_RCVBUF,
72 dc.setOption(SO_RCVBUF, 128*1024); // can't check
78 before = dc.getOption(SO_RCVBUF);
79 after = dc.setOption(SO_RCVBUF, Integer.MAX_VALUE).getOption(SO_RCVBUF);
81 throw new RuntimeException("setOption caused SO_RCVBUF to decrease");
/openjdk7/jdk/test/java/nio/channels/AsynchronousServerSocketChannel/
H A DBasic.java146 if (!options.contains(SO_RCVBUF))
147 throw new RuntimeException("SO_RCVBUF should be supported");
150 ch.setOption(SO_RCVBUF, 256*1024); // can't check
151 int before = ch.getOption(SO_RCVBUF);
152 int after = ch.setOption(SO_RCVBUF, Integer.MAX_VALUE).getOption(SO_RCVBUF);
154 throw new RuntimeException("setOption caused SO_RCVBUF to decrease");
/openjdk7/jdk/test/java/nio/channels/SocketChannel/
H A DSocketOptionTests.java52 List<? extends SocketOption> expected = Arrays.asList(SO_SNDBUF, SO_RCVBUF,
72 sc.setOption(SO_RCVBUF, 256*1024); // can't check
78 before = sc.getOption(SO_RCVBUF);
79 after = sc.setOption(SO_RCVBUF, Integer.MAX_VALUE).getOption(SO_RCVBUF);
81 throw new RuntimeException("setOption caused SO_RCVBUF to decrease");
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DSctpStdSocketOption.java38 public static final int SO_RCVBUF = 6; field in class:SctpStdSocketOption
H A DServerSocketAdaptor.java201 ssc.setOption(StandardSocketOptions.SO_RCVBUF, size);
209 return ssc.getOption(StandardSocketOptions.SO_RCVBUF).intValue();
H A DDatagramSocketAdaptor.java325 setIntOption(StandardSocketOptions.SO_RCVBUF, size);
329 return getIntOption(StandardSocketOptions.SO_RCVBUF);
H A DSocketAdaptor.java389 setIntOption(StandardSocketOptions.SO_RCVBUF, size);
393 return getIntOption(StandardSocketOptions.SO_RCVBUF);
H A DAsynchronousServerSocketChannelImpl.java232 set.add(StandardSocketOptions.SO_RCVBUF);
H A DServerSocketChannelImpl.java178 set.add(StandardSocketOptions.SO_RCVBUF);
/openjdk7/jdk/src/share/classes/com/sun/nio/sctp/
H A DSctpStandardSocketOptions.java274 public static final SctpSocketOption<Integer> SO_RCVBUF = field in class:SctpStandardSocketOptions
275 new SctpStdSocketOption<Integer>("SO_RCVBUF", Integer.class,
276 sun.nio.ch.SctpStdSocketOption.SO_RCVBUF);
/openjdk7/jdk/src/share/native/sun/nio/ch/
H A DgenSocketOptionRegistry.c103 emit_unspec("StandardSocketOptions.SO_RCVBUF", SOL_SOCKET, SO_RCVBUF);
/openjdk7/jdk/test/com/sun/nio/sctp/SctpChannel/
H A DSocketOptionTests.java84 SO_SNDBUF, SO_RCVBUF, SO_LINGER);
108 sc.setOption(SO_RCVBUF, 16*1024);
109 checkOption(sc, SO_RCVBUF, 16*1024);
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/
H A DSctpNet.java218 name.equals(SO_RCVBUF) ||
243 name.equals(SO_RCVBUF) ||
260 if (name == SO_RCVBUF ||
/openjdk7/jdk/src/windows/classes/java/net/
H A DDualStackPlainDatagramSocketImpl.java169 case SO_RCVBUF :
210 case SO_RCVBUF :
H A DDualStackPlainSocketImpl.java200 case SO_RCVBUF :
/openjdk7/jdk/test/com/sun/nio/sctp/SctpMultiChannel/
H A DSocketOptionTests.java92 SO_SNDBUF, SO_RCVBUF, SO_LINGER);
115 smc.setOption(SO_RCVBUF, 16*1024, null);
/openjdk7/jdk/src/solaris/native/java/net/
H A Dnet_util_md.c168 * Iterative way to find the max value that SO_SNDBUF or SO_RCVBUF
1038 { java_net_SocketOptions_SO_RCVBUF, SOL_SOCKET, SO_RCVBUF },
1244 * On Linux the SO_SNDBUF/SO_RCVBUF values must be post-processed
1284 * On Linux SO_SNDBUF/SO_RCVBUF aren't symmetric. This
1289 || (opt == SO_RCVBUF))) {
1314 * and SO_RCVBUF to the kernel configured limit
1383 * SOL_SOCKET/{SO_SNDBUF,SO_RCVBUF} - On Solaris we may need to clamp
1388 if (opt == SO_SNDBUF || opt == SO_RCVBUF) {
1443 * is that if SO_RCVBUF is too small then small packets
1447 if (level == SOL_SOCKET && opt == SO_RCVBUF) {
[all...]
/openjdk7/jdk/test/java/nio/channels/AsynchronousSocketChannel/
H A DBasic.java133 ch.setOption(SO_RCVBUF, 128*1024)
137 // check SO_SNDBUF/SO_RCVBUF limits
143 before = ch.getOption(SO_RCVBUF);
144 after = ch.setOption(SO_RCVBUF, Integer.MAX_VALUE).getOption(SO_RCVBUF);
146 throw new RuntimeException("setOption caused SO_RCVBUF to decrease");
163 ch.getOption(SO_RCVBUF);

Completed in 67 milliseconds

12