Fix UDP connection
This commit is contained in:
parent
ab1a478867
commit
ced42779be
@ -114,7 +114,7 @@ public object UdpPort : PortFactory {
|
|||||||
coroutineContext: CoroutineContext = context.coroutineContext,
|
coroutineContext: CoroutineContext = context.coroutineContext,
|
||||||
): ChannelPort = ChannelPort(context,coroutineContext){
|
): ChannelPort = ChannelPort(context,coroutineContext){
|
||||||
DatagramChannel.open().apply {
|
DatagramChannel.open().apply {
|
||||||
bind(InetSocketAddress(host, port))
|
connect(InetSocketAddress(host, port))
|
||||||
configureBlocking(false)
|
configureBlocking(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user