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
cf6cc012
Commit
cf6cc012
authored
Sep 25, 2009
by
malosek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pgm2 receiver working (partly)
parent
72c5c5ff
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
Makefile.am
src/Makefile.am
+2
-1
pgm_socket.cpp
src/pgm_socket.cpp
+0
-0
pgm_socket.hpp
src/pgm_socket.hpp
+13
-1
socket_base.cpp
src/socket_base.cpp
+2
-2
No files found.
src/Makefile.am
View file @
cf6cc012
...
...
@@ -260,7 +260,8 @@ libzmq_la_CFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/in
-DCONFIG_HAVE_GETPROTOBYNAME_R
\
-DCONFIG_BIND_INADDR_ANY
\
-DCONFIG_GALOIS_MUL_LUT
\
-DGETTEXT_PACKAGE
=
\'
"pgm"
\'
-DGETTEXT_PACKAGE
=
'"pgm"'
\
-DG_LOG_DOMAIN
=
'"Pgm"'
endif
if
BUILD_NO_PGM
...
...
src/pgm_socket.cpp
View file @
cf6cc012
This diff is collapsed.
Click to expand it.
src/pgm_socket.hpp
View file @
cf6cc012
...
...
@@ -119,16 +119,28 @@ namespace zmq
pgm_msgv_t
*
pgm_msgv
;
// How many bytes were read from pgm socket.
#ifdef ZMQ_HAVE_OPENPGM1
ssize_t
nbytes_rec
;
#elif defined ZMQ_HAVE_OPENPGM2
size_t
nbytes_rec
;
#endif
// How many bytes were processed from last pgm socket read.
#ifdef ZMQ_HAVE_OPENPGM1
ssize_t
nbytes_processed
;
#elif defined ZMQ_HAVE_OPENPGM2
size_t
nbytes_processed
;
#endif
// How many messages from pgm_msgv were already sent up.
#ifdef ZMQ_HAVE_OPENPGM1
ssize_t
pgm_msgv_processed
;
#elif defined ZMQ_HAVE_OPENPGM2
size_t
pgm_msgv_processed
;
#endif
// Size of pgm_msgv array.
s
s
ize_t
pgm_msgv_len
;
size_t
pgm_msgv_len
;
// Sender transport uses 2 fd.
enum
{
pgm_sender_fd_count
=
2
};
...
...
src/socket_base.cpp
View file @
cf6cc012
...
...
@@ -93,7 +93,7 @@ int zmq::socket_base_t::bind (const char *addr_)
return
0
;
}
#if defined ZMQ_HAVE_OPENPGM
1
#if defined ZMQ_HAVE_OPENPGM
if
(
addr_type
==
"pgm"
||
addr_type
==
"udp"
)
{
// In the case of PGM bind behaves the same like connect.
return
connect
(
addr_
);
...
...
@@ -179,7 +179,7 @@ int zmq::socket_base_t::connect (const char *addr_)
return
0
;
}
#if defined ZMQ_HAVE_OPENPGM
1
#if defined ZMQ_HAVE_OPENPGM
if
(
addr_type
==
"pgm"
||
addr_type
==
"udp"
)
{
// If the socket type requires bi-directional communication
...
...
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