eclipse-vertx / vert.x

Vert.x is a tool-kit for building reactive applications on the JVM
http://vertx.io
Other
14.32k stars 2.08k forks source link

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

Open vietj opened 3 years ago

vietj commented 3 years ago

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

meoyawn commented 1 year ago

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