Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
1e98cb46
Commit
1e98cb46
authored
Aug 21, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maintenance
parent
96b71cf4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
12 deletions
+2
-12
src/ipv4_acceptor.cpp
src/ipv4_acceptor.cpp
+0
-1
src/ipv4_io_stream.cpp
src/ipv4_io_stream.cpp
+0
-1
src/network_manager.cpp
src/network_manager.cpp
+2
-9
src/unicast_network.cpp
src/unicast_network.cpp
+0
-1
No files found.
src/ipv4_acceptor.cpp
View file @
1e98cb46
...
...
@@ -46,7 +46,6 @@
# include <sys/socket.h>
# include <netinet/in.h>
# include <netinet/tcp.h>
# include <fcntl.h>
#endif
namespace
cppa
{
namespace
detail
{
...
...
src/ipv4_io_stream.cpp
View file @
1e98cb46
...
...
@@ -45,7 +45,6 @@
# include <sys/socket.h>
# include <netinet/in.h>
# include <netinet/tcp.h>
# include <fcntl.h>
#endif
namespace
cppa
{
namespace
detail
{
...
...
src/network_manager.cpp
View file @
1e98cb46
...
...
@@ -30,7 +30,6 @@
#include <cstdio>
#include <thread>
#include <fcntl.h>
#include <cstdint>
#include <cstring> // strerror
#include <unistd.h>
...
...
@@ -44,6 +43,7 @@
#include "cppa/intrusive/single_reader_queue.hpp"
#include "cppa/detail/fd_util.hpp"
#include "cppa/detail/middleman.hpp"
#include "cppa/detail/network_manager.hpp"
...
...
@@ -65,14 +65,7 @@ struct network_manager_impl : network_manager {
}
// store pipe read handle in local variables for lambda expression
int
pipe_fd0
=
pipe_fd
[
0
];
// set read handle to nonblocking
auto
flags
=
fcntl
(
pipe_fd0
,
F_GETFL
,
0
);
if
(
flags
==
-
1
)
{
throw
network_error
(
"unable to read socket flags"
);
}
if
(
fcntl
(
pipe_fd0
,
F_SETFL
,
flags
|
O_NONBLOCK
)
<
0
)
{
CPPA_CRITICAL
(
"unable to set pipe read handle to nonblock"
);
}
fd_util
::
nonblocking
(
pipe_fd0
,
true
);
// start threads
m_middleman_thread
=
std
::
thread
([
this
,
pipe_fd0
]
{
middleman_loop
(
pipe_fd0
,
this
->
m_middleman_queue
);
...
...
src/unicast_network.cpp
View file @
1e98cb46
...
...
@@ -37,7 +37,6 @@
#include <iostream>
#include <stdexcept>
#include <fcntl.h>
#include <netinet/tcp.h>
#include "cppa/cppa.hpp"
...
...
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