Packages

class Socket extends Object with StObject

Annotations
@JSType() @JSImport("dgram", "Socket") @native()
Source
dgramMod.scala
Linear Supertypes
StObject, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Socket
  2. StObject
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Socket(options: EventEmitterOptions)
  2. new Socket()

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. def addListener(event: java.lang.String, listener: Function1[Any, Unit]): Socket.this.type

    events.EventEmitter 1.

    events.EventEmitter 1. close 2. connect 3. error 4. listening 5. message

  5. def addListener_close(event: close, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("addListener")
  6. def addListener_connect(event: connect, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("addListener")
  7. def addListener_error(event: error, listener: Function1[Error, Unit]): Socket.this.type
    Annotations
    @JSName("addListener")
  8. def addListener_listening(event: listening, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("addListener")
  9. def addListener_message(event: message, listener: Function2[Buffer, RemoteInfo, Unit]): Socket.this.type
    Annotations
    @JSName("addListener")
  10. def addMembership(multicastAddress: java.lang.String, multicastInterface: java.lang.String): Unit
  11. def addMembership(multicastAddress: java.lang.String): Unit
  12. def addSourceSpecificMembership(sourceAddress: java.lang.String, groupAddress: java.lang.String, multicastInterface: java.lang.String): Unit
  13. def addSourceSpecificMembership(sourceAddress: java.lang.String, groupAddress: java.lang.String): Unit

    Tells the kernel to join a source-specific multicast channel at the given sourceAddress and groupAddress, using the multicastInterface with the IP_ADD_SOURCE_MEMBERSHIP socket option.

    Tells the kernel to join a source-specific multicast channel at the given sourceAddress and groupAddress, using the multicastInterface with the IP_ADD_SOURCE_MEMBERSHIP socket option. If the multicastInterface argument is not specified, the operating system will choose one interface and will add membership to it. To add membership to every available interface, call socket.addSourceSpecificMembership() multiple times, once per interface.

  14. def address(): AddressInfo
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def bind(port: Unit, callback: Function0[Unit]): Unit
  17. def bind(port: Unit, address: Unit, callback: Function0[Unit]): Unit
  18. def bind(port: Unit, address: java.lang.String, callback: Function0[Unit]): Unit
  19. def bind(port: Unit, address: java.lang.String): Unit
  20. def bind(port: Double, callback: Function0[Unit]): Unit
  21. def bind(port: Double, address: Unit, callback: Function0[Unit]): Unit
  22. def bind(port: Double, address: java.lang.String, callback: Function0[Unit]): Unit
  23. def bind(port: Double, address: java.lang.String): Unit
  24. def bind(port: Double): Unit
  25. def bind(options: BindOptions, callback: Function0[Unit]): Unit
  26. def bind(options: BindOptions): Unit
  27. def bind(callback: Function0[Unit]): Unit
  28. def bind(): Unit
  29. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  30. def close(callback: Function0[Unit]): Unit
  31. def close(): Unit
  32. def connect(port: Double, callback: Function0[Unit]): Unit
  33. def connect(port: Double, address: Unit, callback: Function0[Unit]): Unit
  34. def connect(port: Double, address: java.lang.String, callback: Function0[Unit]): Unit
  35. def connect(port: Double, address: java.lang.String): Unit
  36. def connect(port: Double): Unit
  37. def disconnect(): Unit
  38. def dropMembership(multicastAddress: java.lang.String, multicastInterface: java.lang.String): Unit
  39. def dropMembership(multicastAddress: java.lang.String): Unit
  40. def dropSourceSpecificMembership(sourceAddress: java.lang.String, groupAddress: java.lang.String, multicastInterface: java.lang.String): Unit
  41. def dropSourceSpecificMembership(sourceAddress: java.lang.String, groupAddress: java.lang.String): Unit

    Instructs the kernel to leave a source-specific multicast channel at the given sourceAddress and groupAddress using the IP_DROP_SOURCE_MEMBERSHIP socket option.

    Instructs the kernel to leave a source-specific multicast channel at the given sourceAddress and groupAddress using the IP_DROP_SOURCE_MEMBERSHIP socket option. This method is automatically called by the kernel when the socket is closed or the process terminates, so most apps will never have reason to call this.

    If multicastInterface is not specified, the operating system will attempt to drop membership on all valid interfaces.

  42. def emit(event: Symbol, args: Any*): Boolean
  43. def emit(event: java.lang.String, args: Any*): Boolean
  44. def emit_close(event: close): Boolean
    Annotations
    @JSName("emit")
  45. def emit_connect(event: connect): Boolean
    Annotations
    @JSName("emit")
  46. def emit_error(event: error, err: Error): Boolean
    Annotations
    @JSName("emit")
  47. def emit_listening(event: listening): Boolean
    Annotations
    @JSName("emit")
  48. def emit_message(event: message, msg: Buffer, rinfo: RemoteInfo): Boolean
    Annotations
    @JSName("emit")
  49. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  50. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  51. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  52. def getRecvBufferSize(): Double
  53. def getSendBufferSize(): Double
  54. def hasOwnProperty(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  55. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  56. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  57. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  58. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  59. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  60. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  61. def on(event: java.lang.String, listener: Function1[Any, Unit]): Socket.this.type
  62. def on_close(event: close, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("on")
  63. def on_connect(event: connect, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("on")
  64. def on_error(event: error, listener: Function1[Error, Unit]): Socket.this.type
    Annotations
    @JSName("on")
  65. def on_listening(event: listening, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("on")
  66. def on_message(event: message, listener: Function2[Buffer, RemoteInfo, Unit]): Socket.this.type
    Annotations
    @JSName("on")
  67. def once(event: java.lang.String, listener: Function1[Any, Unit]): Socket.this.type
  68. def once_close(event: close, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("once")
  69. def once_connect(event: connect, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("once")
  70. def once_error(event: error, listener: Function1[Error, Unit]): Socket.this.type
    Annotations
    @JSName("once")
  71. def once_listening(event: listening, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("once")
  72. def once_message(event: message, listener: Function2[Buffer, RemoteInfo, Unit]): Socket.this.type
    Annotations
    @JSName("once")
  73. def prependListener(event: java.lang.String, listener: Function1[Any, Unit]): Socket.this.type
  74. def prependListener_close(event: close, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("prependListener")
  75. def prependListener_connect(event: connect, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("prependListener")
  76. def prependListener_error(event: error, listener: Function1[Error, Unit]): Socket.this.type
    Annotations
    @JSName("prependListener")
  77. def prependListener_listening(event: listening, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("prependListener")
  78. def prependListener_message(event: message, listener: Function2[Buffer, RemoteInfo, Unit]): Socket.this.type
    Annotations
    @JSName("prependListener")
  79. def prependOnceListener(event: java.lang.String, listener: Function1[Any, Unit]): Socket.this.type
  80. def prependOnceListener_close(event: close, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("prependOnceListener")
  81. def prependOnceListener_connect(event: connect, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("prependOnceListener")
  82. def prependOnceListener_error(event: error, listener: Function1[Error, Unit]): Socket.this.type
    Annotations
    @JSName("prependOnceListener")
  83. def prependOnceListener_listening(event: listening, listener: Function0[Unit]): Socket.this.type
    Annotations
    @JSName("prependOnceListener")
  84. def prependOnceListener_message(event: message, listener: Function2[Buffer, RemoteInfo, Unit]): Socket.this.type
    Annotations
    @JSName("prependOnceListener")
  85. def propertyIsEnumerable(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  86. def ref(): Socket.this.type
  87. def remoteAddress(): AddressInfo
  88. def send(msg: Uint8Array, port: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  89. def send(msg: Uint8Array, port: Unit, address: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  90. def send(msg: Uint8Array, port: Unit, address: java.lang.String, callback: Function2[|[Error, Null], Double, Unit]): Unit
  91. def send(msg: Uint8Array, port: Unit, address: java.lang.String): Unit
  92. def send(msg: Uint8Array, port: Double, callback: Function2[|[Error, Null], Double, Unit]): Unit
  93. def send(msg: Uint8Array, port: Double, address: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  94. def send(msg: Uint8Array, port: Double, address: java.lang.String, callback: Function2[|[Error, Null], Double, Unit]): Unit
  95. def send(msg: Uint8Array, port: Double, address: java.lang.String): Unit
  96. def send(msg: Uint8Array, port: Double): Unit
  97. def send(msg: Uint8Array, offset: Double, length: Double, port: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  98. def send(msg: Uint8Array, offset: Double, length: Double, port: Unit, address: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  99. def send(msg: Uint8Array, offset: Double, length: Double, port: Unit, address: java.lang.String, callback: Function2[|[Error, Null], Double, Unit]): Unit
  100. def send(msg: Uint8Array, offset: Double, length: Double, port: Unit, address: java.lang.String): Unit
  101. def send(msg: Uint8Array, offset: Double, length: Double, port: Double, callback: Function2[|[Error, Null], Double, Unit]): Unit
  102. def send(msg: Uint8Array, offset: Double, length: Double, port: Double, address: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  103. def send(msg: Uint8Array, offset: Double, length: Double, port: Double, address: java.lang.String, callback: Function2[|[Error, Null], Double, Unit]): Unit
  104. def send(msg: Uint8Array, offset: Double, length: Double, port: Double, address: java.lang.String): Unit
  105. def send(msg: Uint8Array, offset: Double, length: Double, port: Double): Unit
  106. def send(msg: Uint8Array, offset: Double, length: Double, callback: Function2[|[Error, Null], Double, Unit]): Unit
  107. def send(msg: Uint8Array, offset: Double, length: Double): Unit
  108. def send(msg: Uint8Array, callback: Function2[|[Error, Null], Double, Unit]): Unit
  109. def send(msg: Uint8Array): Unit
  110. def send(msg: Array[Any], port: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  111. def send(msg: Array[Any], port: Unit, address: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  112. def send(msg: Array[Any], port: Unit, address: java.lang.String, callback: Function2[|[Error, Null], Double, Unit]): Unit
  113. def send(msg: Array[Any], port: Unit, address: java.lang.String): Unit
  114. def send(msg: Array[Any], port: Double, callback: Function2[|[Error, Null], Double, Unit]): Unit
  115. def send(msg: Array[Any], port: Double, address: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  116. def send(msg: Array[Any], port: Double, address: java.lang.String, callback: Function2[|[Error, Null], Double, Unit]): Unit
  117. def send(msg: Array[Any], port: Double, address: java.lang.String): Unit
  118. def send(msg: Array[Any], port: Double): Unit
  119. def send(msg: Array[Any], callback: Function2[|[Error, Null], Double, Unit]): Unit
  120. def send(msg: Array[Any]): Unit
  121. def send(msg: java.lang.String, port: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  122. def send(msg: java.lang.String, port: Unit, address: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  123. def send(msg: java.lang.String, port: Unit, address: java.lang.String, callback: Function2[|[Error, Null], Double, Unit]): Unit
  124. def send(msg: java.lang.String, port: Unit, address: java.lang.String): Unit
  125. def send(msg: java.lang.String, port: Double, callback: Function2[|[Error, Null], Double, Unit]): Unit
  126. def send(msg: java.lang.String, port: Double, address: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  127. def send(msg: java.lang.String, port: Double, address: java.lang.String, callback: Function2[|[Error, Null], Double, Unit]): Unit
  128. def send(msg: java.lang.String, port: Double, address: java.lang.String): Unit
  129. def send(msg: java.lang.String, port: Double): Unit
  130. def send(msg: java.lang.String, offset: Double, length: Double, port: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  131. def send(msg: java.lang.String, offset: Double, length: Double, port: Unit, address: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  132. def send(msg: java.lang.String, offset: Double, length: Double, port: Unit, address: java.lang.String, callback: Function2[|[Error, Null], Double, Unit]): Unit
  133. def send(msg: java.lang.String, offset: Double, length: Double, port: Unit, address: java.lang.String): Unit
  134. def send(msg: java.lang.String, offset: Double, length: Double, port: Double, callback: Function2[|[Error, Null], Double, Unit]): Unit
  135. def send(msg: java.lang.String, offset: Double, length: Double, port: Double, address: Unit, callback: Function2[|[Error, Null], Double, Unit]): Unit
  136. def send(msg: java.lang.String, offset: Double, length: Double, port: Double, address: java.lang.String, callback: Function2[|[Error, Null], Double, Unit]): Unit
  137. def send(msg: java.lang.String, offset: Double, length: Double, port: Double, address: java.lang.String): Unit
  138. def send(msg: java.lang.String, offset: Double, length: Double, port: Double): Unit
  139. def send(msg: java.lang.String, offset: Double, length: Double, callback: Function2[|[Error, Null], Double, Unit]): Unit
  140. def send(msg: java.lang.String, offset: Double, length: Double): Unit
  141. def send(msg: java.lang.String, callback: Function2[|[Error, Null], Double, Unit]): Unit
  142. def send(msg: java.lang.String): Unit
  143. def setBroadcast(flag: Boolean): Unit
  144. def setMulticastInterface(multicastInterface: java.lang.String): Unit
  145. def setMulticastLoopback(flag: Boolean): Unit
  146. def setMulticastTTL(ttl: Double): Unit
  147. def setRecvBufferSize(size: Double): Unit
  148. def setSendBufferSize(size: Double): Unit
  149. def setTTL(ttl: Double): Unit
  150. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  151. def toLocaleString(): scala.Predef.String
    Definition Classes
    Object
  152. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  153. def unref(): Socket.this.type
  154. def valueOf(): Any
    Definition Classes
    Object
  155. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  156. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  157. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from StObject

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped