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
- Alphabetic
- By Inheritance
- Net
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def connect(port: Int): Socket
- def connect(port: Int, host: String): Socket
- def connect(port: Int, connectListener: Function): Socket
- def connect(port: Int, host: String, connectListener: Function): Socket
- def connect(path: String): Socket
- def connect(path: String, connectListener: Function): Socket
- def connect(options: ConnectOptions): Socket
- 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.
net.connect(options[, connectListener])
Example: - def createConnection(port: Int): Socket
- def createConnection(port: Int, host: String): Socket
- def createConnection(port: Int, connectListener: Function): Socket
- def createConnection(port: Int, host: String, connectListener: Function): Socket
- def createConnection(path: String): Socket
- def createConnection(path: String, connectListener: Function): Socket
- def createConnection(options: ConnectOptions): Socket
- 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.
net.createConnection(options[, connectListener])
Example: - def createServer(): Server
- def createServer(connectionListener: Function): Server
- def createServer(options: ServerOptions): Server
- def createServer(options: ServerOptions, connectionListener: Function): Server
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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.
net.isIP(input)
Example: - 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.
net.isIPv4(input)
Example: - 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.
net.isIPv6(input)
Example: - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()