SocketUtil
org.apache.pekko.testkit.SocketUtil$
object SocketUtil
Utilities to get free socket address.
Attributes
- Source
- SocketUtil.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SocketUtil.type
Members list
Type members
Classlikes
Attributes
- Source
- SocketUtil.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Value members
Concrete methods
Attributes
- Source
- SocketUtil.scala
Attributes
- Source
- SocketUtil.scala
Attributes
- Returns
-
A port on 'localhost' that is currently available
- Source
- SocketUtil.scala
Find a free local post on 'localhost' that is available on the given protocol If both UDP and TCP need to be free specify Both
Find a free local post on 'localhost' that is available on the given protocol If both UDP and TCP need to be free specify Both
Attributes
- Source
- SocketUtil.scala
Value parameters
- address
-
host address. If not set, a loopback IP from the 127.20.0.0/16 range is picked
- udp
-
if true, select a port that is free for running a UDP server. Otherwise TCP.
Attributes
- Returns
-
an address (host+port) that is currently available to bind on
- Source
- SocketUtil.scala
def temporaryServerAddresses(numberOfAddresses: Int, hostname: String, udp: Boolean): IndexedSeq[InetSocketAddress]
Attributes
- Source
- SocketUtil.scala
Attributes
- Source
- SocketUtil.scala
Attributes
- Source
- SocketUtil.scala
Concrete fields
Attributes
- Source
- SocketUtil.scala
In this article