Hi 
I used following code for my sever implementation: 

kj::AsyncIoContext asyncIO = kj::setupAsyncIo();
auto &waitScope = asyncIO.waitScope;
auto &ioProvider = *asyncIO.provider;
auto &network = ioProvider.getNetwork();
auto addr = network.parseAddress(instance->address).wait(waitScope);
auto listner = addr->listen();
capnp::TwoPartyServer server(kj::heap<RPCHandler>());
auto serverPromise = server.listen(*listner);


but when I pass a unix domain socket path as address, got following error: 

libc++abi.dylib: terminating with uncaught exception of type kj::
ExceptionImpl: kj/async-io-unix.c++:941: failed: DNS lookup failed.; 
params.host 
= /Users/reza/.userdata/rpc/accounts; params.service = ; gai_strerror(status
) = nodename nor servname provided, or not known
stack: 1025a8636 1025b0435 1025b00bd 102593ec2 1025944dc 102594323 102575426 
1025954f4 1024c5656 1024c50c0 1024c4d47 7fff719e1660 7fff719e150c 
7fff719e0bf8

could anyone help me on this? 

thanks,
Reza



-- 
You received this message because you are subscribed to the Google Groups 
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/capnproto.

Reply via email to