Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
f00eb5aa
Commit
f00eb5aa
authored
Dec 14, 2015
by
Constantin Rack
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1664 from Kentzo/vmci
Add special interface to represent local VMCI context.
parents
30198961
3caa637e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
zmq_vmci.txt
doc/zmq_vmci.txt
+1
-1
vmci_address.cpp
src/vmci_address.cpp
+8
-0
No files found.
doc/zmq_vmci.txt
View file @
f00eb5aa
...
@@ -34,7 +34,7 @@ colon and the TCP port number to use.
...
@@ -34,7 +34,7 @@ colon and the TCP port number to use.
An 'interface' may be specified by either of the following:
An 'interface' may be specified by either of the following:
* The wild-card `*`, meaning all available interfaces.
* The wild-card `*`, meaning all available interfaces.
* An integer returned by `VMCISock_GetLocalCID`
* An integer returned by `VMCISock_GetLocalCID`
or `@` (ZeroMQ will call VMCISock_GetLocalCID internally).
The port may be specified by:
The port may be specified by:
...
...
src/vmci_address.cpp
View file @
f00eb5aa
...
@@ -77,6 +77,14 @@ int zmq::vmci_address_t::resolve(const char *path_)
...
@@ -77,6 +77,14 @@ int zmq::vmci_address_t::resolve(const char *path_)
errno
=
EINVAL
;
errno
=
EINVAL
;
return
-
1
;
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"
)
{
else
if
(
addr_str
!=
"*"
&&
addr_str
!=
"-1"
)
{
const
char
*
begin
=
addr_str
.
c_str
();
const
char
*
begin
=
addr_str
.
c_str
();
char
*
end
=
NULL
;
char
*
end
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment