equal
deleted
inserted
replaced
22 * or visit www.oracle.com if you need additional information or have any |
22 * or visit www.oracle.com if you need additional information or have any |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 package sun.net; |
25 package sun.net; |
26 |
26 |
27 import java.net.SocketImpl; |
|
28 |
|
29 /** |
27 /** |
30 * Implemented by the platform's SocketImpl implementations. |
28 * Implemented by the platform's SocketImpl implementations. |
31 */ |
29 */ |
32 |
30 |
33 public interface PlatformSocketImpl { |
31 public interface PlatformSocketImpl { |
34 |
|
35 /** |
|
36 * Copy the state from this connected SocketImpl to a target SocketImpl. If |
|
37 * the target SocketImpl is not a newly created SocketImpl then it is first |
|
38 * closed to release any resources. The target SocketImpl becomes the owner |
|
39 * of the file descriptor, this SocketImpl is marked as closed and should |
|
40 * be discarded. |
|
41 */ |
|
42 void copyTo(SocketImpl si); |
|
43 } |
32 } |