Skip to content

Version 2.0-BETA-2

Compare
Choose a tag to compare
@sshanks-kx sshanks-kx released this 07 Nov 18:12
· 13 commits to master since this release
  • Ability to use UDS (unix domain sockets) between java and kdb+.

Requires java version 16 or greater, OS support & client/server residing on same machine.
Java reference here

example of client connection when kdb+ listening on 5010

c=new c("/tmp/kx.5010",System.getProperty("user.name")+":mypassword");

example of creating server when kdb+ connecting with h:hopen`:unix://1234

java.net.UnixDomainSocketAddress address = java.net.UnixDomainSocketAddress.of("/tmp/kx.1234");
ServerSocketChannel serverChannel = ServerSocketChannel.open(java.net.StandardProtocolFamily.UNIX);
serverChannel.bind(address);
// pass serverChannel to c contructor to wait til new client connection occurs