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
898ee99d
Commit
898ee99d
authored
Aug 18, 2011
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows build fixed
Signed-off-by:
Martin Sustrik
<
sustrik@250bpm.com
>
parent
b6ecb00d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
libzmq.vcproj
builds/msvc/libzmq/libzmq.vcproj
+8
-0
tcp_address.cpp
src/tcp_address.cpp
+5
-2
tcp_address.hpp
src/tcp_address.hpp
+8
-0
No files found.
builds/msvc/libzmq/libzmq.vcproj
View file @
898ee99d
...
...
@@ -422,6 +422,10 @@
RelativePath=
"..\..\..\src\sub.cpp"
>
</File>
<File
RelativePath=
"..\..\..\src\tcp_address.cpp"
>
</File>
<File
RelativePath=
"..\..\..\src\tcp_connecter.cpp"
>
...
...
@@ -704,6 +708,10 @@
RelativePath=
"..\..\..\src\sub.hpp"
>
</File>
<File
RelativePath=
"..\..\..\src\tcp_address.hpp"
>
</File>
<File
RelativePath=
"..\..\..\src\tcp_connecter.hpp"
>
...
...
src/tcp_address.cpp
View file @
898ee99d
...
...
@@ -23,15 +23,14 @@
#include "tcp_address.hpp"
#include "platform.hpp"
#include "stdint.hpp"
#include "err.hpp"
#ifdef ZMQ_HAVE_WINDOWS
#include "windows.hpp"
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
#endif
...
...
@@ -415,7 +414,11 @@ socklen_t zmq::tcp_address_t::addrlen ()
return
(
socklen_t
)
sizeof
(
address
.
ipv4
);
}
#if defined ZMQ_HAVE_WINDOWS
unsigned
short
zmq
::
tcp_address_t
::
family
()
#else
sa_family_t
zmq
::
tcp_address_t
::
family
()
#endif
{
return
address
.
generic
.
sa_family
;
}
...
...
src/tcp_address.hpp
View file @
898ee99d
...
...
@@ -23,8 +23,12 @@
#include "platform.hpp"
#if defined ZMQ_HAVE_WINDOWS
#include "windows.hpp"
#else
#include <sys/socket.h>
#include <netinet/in.h>
#endif
namespace
zmq
{
...
...
@@ -42,7 +46,11 @@ namespace zmq
// If 'ipv4only' is true, the name will never resolve to IPv6 address.
int
resolve
(
const
char
*
name_
,
bool
local_
,
bool
ipv4only_
);
#if defined ZMQ_HAVE_WINDOWS
unsigned
short
family
();
#else
sa_family_t
family
();
#endif
sockaddr
*
addr
();
socklen_t
addrlen
();
...
...
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