equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2007,2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
52 |
52 |
53 protected native void setTimeToLive(int ttl) throws IOException; |
53 protected native void setTimeToLive(int ttl) throws IOException; |
54 |
54 |
55 protected native int getTimeToLive() throws IOException; |
55 protected native int getTimeToLive() throws IOException; |
56 |
56 |
|
57 @Deprecated |
57 protected native void setTTL(byte ttl) throws IOException; |
58 protected native void setTTL(byte ttl) throws IOException; |
58 |
59 |
|
60 @Deprecated |
59 protected native byte getTTL() throws IOException; |
61 protected native byte getTTL() throws IOException; |
60 |
62 |
61 protected native void join(InetAddress inetaddr, NetworkInterface netIf) |
63 protected native void join(InetAddress inetaddr, NetworkInterface netIf) |
62 throws IOException; |
64 throws IOException; |
63 |
65 |