< prev index next >

src/java.base/share/classes/jdk/net/ExtendedSocketOptions.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 56,61 **** --- 56,88 ---- * {@code ("setOption.SO_FLOW_SLA")} or {@code "getOption.SO_FLOW_SLA"} * respectively. */ public static final SocketOption<SocketFlow> SO_FLOW_SLA = new ExtSocketOption<SocketFlow>("SO_FLOW_SLA", SocketFlow.class); + + /** + * SO_QUICKACK. + * + * <p> + * The value of this socket option is a {@code Boolean} that represents + * whether the option is enabled or disabled. The exact semantics of this + * socket option are socket type and system dependent. + * + * <p> + * This socket option usually enable TCP_QUICKACK mode if set or disable + * TCP_QUICKACK mode if cleared. + * + * <p> + * In TCP_QUICKACK mode, acks are sent immediately, rather than delayed if + * needed in accordance to normal TCP operation.This flag is not permanent, + * it only enables a switch to or from TCP_QUICKACK mode. + * + * <p> + * Subsequent operation of the TCP protocol will once again enter/leave + * TCP_QUICKACK mode depending on internal protocol processing and factors + * such as delayed ack timeouts occurring and data transfer. + * + * @since 9 + */ + public static final SocketOption<Boolean> SO_QUICKACK + = new ExtSocketOption<Boolean>("SO_QUICKACK", Boolean.class); }
< prev index next >