vert.x icon indicating copy to clipboard operation
vert.x copied to clipboard

Add support for Unix domain datagram sockets when using native epoll/kqueue transport

Open vietj opened this issue 4 years ago • 1 comments

Now possible in Netty : https://github.com/netty/netty/pull/11423

vietj avatar Jul 27 '21 12:07 vietj

do I understand correctly that this is not possible in 4.4.3?

val fdInt = 3
val fdObj = FileDescriptor()
val field = FileDescriptor::class.java.getDeclaredField("fd")
field.isAccessible = true
field.setInt(fdObj, fdInt)

val afSock = FileDescriptorCast.using(fdObj).`as`(org.newsclub.net.unix.AFSocket::class.java)

vertx.createHttpServer()
    .requestHandler(router)
    .listen(io.vertx.core.net.SocketAddress.domainSocketAddress(afSock.))
    .await()

trying to use junixsocket but just can't obtain the String path for domainSocketAddress

meoyawn avatar Jun 20 '23 10:06 meoyawn