Package java.net
Class SocketUtils
java.lang.Object
java.net.SocketUtils
public class SocketUtils extends Object
-
Method Summary
Modifier and Type Method Description static voidsetCreated(Socket s)Helps us reuse more of Socket's implementation in SocketChannelImpl.SocketAdapter.
-
Method Details
-
setCreated
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.
-