}
try {
if (server) {
UnixServerSocketChannel channel = UnixServerSocketChannel.open();
UnixServerSocket socket = channel.socket();
// TODO: listen backlog
socket.bind(new UnixSocketAddress(new File(fpath)));
init_sock(runtime, channel, fpath);
} else {
File fpathFile = new File(fpath);