Package java.net

Class SocketUtils

java.lang.Object
java.net.SocketUtils

public class SocketUtils
extends Object
  • Method Details

    • 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.