Class NetJavaSocketImpl

  • All Implemented Interfaces:
    Socket, Disposable

    public class NetJavaSocketImpl
    extends java.lang.Object
    implements Socket
    Socket implementation using java.net.Socket.
    • Constructor Detail

      • NetJavaSocketImpl

        public NetJavaSocketImpl​(Net.Protocol protocol,
                                 java.lang.String host,
                                 int port,
                                 SocketHints hints)
      • NetJavaSocketImpl

        public NetJavaSocketImpl​(java.net.Socket socket,
                                 SocketHints hints)
    • Method Detail

      • isConnected

        public boolean isConnected()
        Specified by:
        isConnected in interface Socket
        Returns:
        whether the socket is connected
      • getInputStream

        public java.io.InputStream getInputStream()
        Specified by:
        getInputStream in interface Socket
        Returns:
        the InputStream used to read data from the other end of the connection.
      • getOutputStream

        public java.io.OutputStream getOutputStream()
        Specified by:
        getOutputStream in interface Socket
        Returns:
        the OutputStream used to write data to the other end of the connection.
      • getRemoteAddress

        public java.lang.String getRemoteAddress()
        Specified by:
        getRemoteAddress in interface Socket
        Returns:
        the RemoteAddress of the Socket as String
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Releases all resources of this object.
        Specified by:
        dispose in interface Disposable