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
986ab66b
Commit
986ab66b
authored
Dec 10, 2009
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZMQII-27: Allow setting SNDBUF and RCVBUF size from 0MQ API (Win32)
parent
8d586436
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
tcp_socket.cpp
src/tcp_socket.cpp
+15
-0
No files found.
src/tcp_socket.cpp
View file @
986ab66b
...
...
@@ -38,6 +38,21 @@ int zmq::tcp_socket_t::open (fd_t fd_, uint64_t sndbuf_, uint64_t rcvbuf_)
{
zmq_assert
(
s
==
retired_fd
);
s
=
fd_
;
if
(
sndbuf_
)
{
int
sz
=
(
int
)
sndbuf_
;
int
rc
=
setsockopt
(
s
,
SOL_SOCKET
,
SO_SNDBUF
,
(
char
*
)
&
sz
,
sizeof
(
int
));
errno_assert
(
rc
==
0
);
}
if
(
rcvbuf_
)
{
int
sz
=
(
int
)
rcvbuf_
;
int
rc
=
setsockopt
(
s
,
SOL_SOCKET
,
SO_RCVBUF
,
(
char
*
)
&
sz
,
sizeof
(
int
));
errno_assert
(
rc
==
0
);
}
return
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