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
de1d32da
Commit
de1d32da
authored
Nov 04, 2011
by
Brett Cameron
Committed by
Martin Sustrik
Nov 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix getaddrinfo calls to work on OpenVMS
Signed-off by: Brett Cameron <Brett.Cameron@hp.com>
parent
50a9ee6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tcp_address.cpp
src/tcp_address.cpp
+8
-0
No files found.
src/tcp_address.cpp
View file @
de1d32da
...
...
@@ -308,7 +308,11 @@ int zmq::tcp_address_t::resolve_interface (char const *interface_,
int
zmq
::
tcp_address_t
::
resolve_hostname
(
const
char
*
hostname_
,
bool
ipv4only_
)
{
// Set up the query.
#if defined ZMQ_HAVE_OPENVMS && defined __ia64 && __INITIAL_POINTER_SIZE == 64
__addrinfo64
req
;
#else
addrinfo
req
;
#endif
memset
(
&
req
,
0
,
sizeof
(
req
));
// Choose IPv4 or IPv6 protocol family. Note that IPv6 allows for
...
...
@@ -329,7 +333,11 @@ int zmq::tcp_address_t::resolve_hostname (const char *hostname_, bool ipv4only_)
// Resolve host name. Some of the error info is lost in case of error,
// however, there's no way to report EAI errors via errno.
#if defined ZMQ_HAVE_OPENVMS && defined __ia64 && __INITIAL_POINTER_SIZE == 64
__addrinfo64
*
res
;
#else
addrinfo
*
res
;
#endif
int
rc
=
getaddrinfo
(
hostname_
,
NULL
,
&
req
,
&
res
);
if
(
rc
)
{
switch
(
rc
)
{
...
...
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