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
bd792faa
Commit
bd792faa
authored
Dec 14, 2009
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZMQ_SNDBUF and ZMQ_RCVBUF honoured in PGM transport
parent
68488215
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
pgm_socket.cpp
src/pgm_socket.cpp
+12
-1
No files found.
src/pgm_socket.cpp
View file @
bd792faa
...
...
@@ -197,9 +197,14 @@ int zmq::pgm_socket_t::open_transport ()
// Set transport->can_send_data = FALSE.
// Note that NAKs are still generated by the transport.
rc
=
pgm_transport_set_recv_only
(
transport
,
true
,
false
);
zmq_assert
(
rc
==
pgm_ok
);
if
(
options
.
rcvbuf
)
{
rc
=
pgm_transport_set_rcvbuf
(
transport
,
(
int
)
options
.
rcvbuf
);
if
(
rc
!=
pgm_ok
)
return
-
1
;
}
// Set NAK transmit back-off interval [us].
rc
=
pgm_transport_set_nak_bo_ivl
(
transport
,
50
*
1000
);
zmq_assert
(
rc
==
pgm_ok
);
...
...
@@ -260,6 +265,12 @@ int zmq::pgm_socket_t::open_transport ()
rc
=
pgm_transport_set_send_only
(
transport
,
TRUE
);
zmq_assert
(
rc
==
pgm_ok
);
if
(
options
.
sndbuf
)
{
rc
=
pgm_transport_set_sndbuf
(
transport
,
(
int
)
options
.
sndbuf
);
if
(
rc
!=
pgm_ok
)
return
-
1
;
}
// Set the size of the send window.
// Data rate is in [B/s] options.rate is in [kb/s].
if
(
options
.
rate
<=
0
)
{
...
...
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