View Javadoc
1   /*
2    * Copyright 2012 The Netty Project
3    *
4    * The Netty Project licenses this file to you under the Apache License,
5    * version 2.0 (the "License"); you may not use this file except in compliance
6    * with the License. You may obtain a copy of the License at:
7    *
8    *   https://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations
14   * under the License.
15   */
16  package io.netty5.channel.socket;
17  
18  import io.netty5.channel.Channel;
19  import io.netty5.channel.ChannelOption;
20  
21  
22  /**
23   * A Socket {@link Channel}.
24   *
25   * <h3>Available options</h3>
26   *
27   * In addition to the options provided by {@link Channel},
28   * {@link SocketChannel} allows the following options in the option map:
29   *
30   * <table border="1" cellspacing="0" cellpadding="6">
31   * <tr>
32   * <th>{@link ChannelOption}</th>
33   * <th>{@code INET}</th>
34   * <th>{@code INET6}</th>
35   * <th>{@code UNIX}</th>
36   * </tr><tr>
37   * <td>{@link ChannelOption#SO_KEEPALIVE}</td><td>X</td><td>X</td><td>-</td>
38   * </tr><tr>
39   * <td>{@link ChannelOption#SO_REUSEADDR}</td><td>X</td><td>X</td><td>-</td>
40   * </tr><tr>
41   * <td>{@link ChannelOption#SO_LINGER}</td><td>X</td><td>X</td><td>-</td>
42   * </tr><tr>
43   * <td>{@link ChannelOption#TCP_NODELAY}</td><td>X</td><td>X</td><td>-</td>
44   * </tr><tr>
45   * <td>{@link ChannelOption#SO_RCVBUF}</td><td>X</td><td>X</td><td>X</td>
46   * </tr><tr>
47   * <td>{@link ChannelOption#SO_SNDBUF}</td><td>X</td><td>X</td><td>X</td>
48   * </tr><tr>
49   * <td>{@link ChannelOption#IP_TOS}</td><td>X</td><td>X</td><td>-</td>
50   * </tr>
51   * </table>
52   */
53  public interface SocketChannel extends Channel {
54      @Override
55      ServerSocketChannel parent();
56  }