Package java.net
Class SocketUtils
- java.lang.Object
-
- java.net.SocketUtils
-
public class SocketUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsetCreated(Socket s)Helps us reuse more of Socket's implementation in SocketChannelImpl.SocketAdapter.
-
-
-
Method Detail
-
setCreated
public static void setCreated(Socket s)
Helps us reuse more of Socket's implementation in SocketChannelImpl.SocketAdapter. It's not the case that we should set isCreated in the Socket(SocketImpl) constructor; SocketImpl.create should be called in general. But for SocketChannelImpl.SocketAdapter's SocketImpl, we don't want that behavior.
-
-