Packages

trait Net extends Object

net - The net module provides you with an asynchronous network wrapper. It contains functions for creating both servers and clients (called streams).

Annotations
@JSType() @native()
See also

https://nodejs.org/api/net.html

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Net
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def connect(port: Int): Socket
  7. def connect(port: Int, host: String): Socket
  8. def connect(port: Int, connectListener: Function): Socket
  9. def connect(port: Int, host: String, connectListener: Function): Socket
  10. def connect(path: String): Socket
  11. def connect(path: String, connectListener: Function): Socket
  12. def connect(options: ConnectOptions): Socket
  13. def connect(options: ConnectOptions, callback: Function): Socket

    A factory function, which returns a new net.Socket and automatically connects with the supplied options.

    A factory function, which returns a new net.Socket and automatically connects with the supplied options. The options are passed to both the net.Socket constructor and the socket.connect method. The connectListener parameter will be added as a listener for the 'connect' event once.

    Example:
    1. net.connect(options[, connectListener])

  14. def createConnection(port: Int): Socket
  15. def createConnection(port: Int, host: String): Socket
  16. def createConnection(port: Int, connectListener: Function): Socket
  17. def createConnection(port: Int, host: String, connectListener: Function): Socket
  18. def createConnection(path: String): Socket
  19. def createConnection(path: String, connectListener: Function): Socket
  20. def createConnection(options: ConnectOptions): Socket
  21. def createConnection(options: ConnectOptions, connectListener: Function): Socket

    A factory function, which returns a new net.Socket and automatically connects with the supplied options.

    A factory function, which returns a new net.Socket and automatically connects with the supplied options. The options are passed to both the net.Socket constructor and the socket.connect method. The connectListener parameter will be added as a listener for the 'connect' event once.

    Example:
    1. net.createConnection(options[, connectListener])

  22. def createServer(): Server
  23. def createServer(connectionListener: Function): Server
  24. def createServer(options: ServerOptions): Server
  25. def createServer(options: ServerOptions, connectionListener: Function): Server
  26. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  28. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  29. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  31. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  32. def isIP(input: String): Int

    Tests if input is an IP address.

    Tests if input is an IP address. Returns 0 for invalid strings, returns 4 for IP version 4 addresses, and returns 6 for IP version 6 addresses.

    Example:
    1. net.isIP(input)

  33. def isIPv4(input: String): Boolean

    Returns true if input is a version 4 IP address, otherwise returns false.

    Returns true if input is a version 4 IP address, otherwise returns false.

    Example:
    1. net.isIPv4(input)

  34. def isIPv6(input: String): Boolean

    Returns true if input is a version 6 IP address, otherwise returns false.

    Returns true if input is a version 6 IP address, otherwise returns false.

    Example:
    1. net.isIPv6(input)

  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. def toLocaleString(): String
    Definition Classes
    Object
  43. def toString(): String
    Definition Classes
    AnyRef → Any
  44. def valueOf(): Any
    Definition Classes
    Object
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped