1 7 8 package java.net; 9 10 25 26 27 public interface SocketOptions { 28 29 70 public void 71 setOption(int optID, Object value) throws SocketException ; 72 73 106 public Object getOption(int optID) throws SocketException ; 107 108 111 112 122 123 public final static int TCP_NODELAY = 0x0001; 124 125 143 144 public final static int SO_BINDADDR = 0x000F; 145 146 151 152 public final static int SO_REUSEADDR = 0x04; 153 154 162 163 public final static int SO_BROADCAST = 0x0020; 164 165 174 175 public final static int IP_MULTICAST_IF = 0x10; 176 177 187 public final static int IP_MULTICAST_IF2 = 0x1f; 188 189 194 195 public final static int IP_MULTICAST_LOOP = 0x12; 196 197 202 203 public final static int IP_TOS = 0x3; 204 205 221 public final static int SO_LINGER = 0x0080; 222 223 242 public final static int SO_TIMEOUT = 0x1006; 243 244 259 public final static int SO_SNDBUF = 0x1001; 260 261 277 public final static int SO_RCVBUF = 0x1002; 278 279 300 public final static int SO_KEEPALIVE = 0x0008; 301 302 311 public final static int SO_OOBINLINE = 0x1003; 312 } 313 314 315 316 317 318 319 | Popular Tags |