mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 21:50:49 +01:00
Add special interface to represent local VMCI context.
This commit is contained in:
@@ -77,6 +77,14 @@ int zmq::vmci_address_t::resolve(const char *path_)
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
else if (addr_str == "@") {
|
||||
cid = VMCISock_GetLocalCID();
|
||||
|
||||
if (cid == VMADDR_CID_ANY) {
|
||||
errno = ENODEV;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else if (addr_str != "*" && addr_str != "-1") {
|
||||
const char *begin = addr_str.c_str();
|
||||
char *end = NULL;
|
||||
|
||||
Reference in New Issue
Block a user