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
e211c2aa
Commit
e211c2aa
authored
Sep 03, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix formatting of test_typed_remote_actor
parent
0c1bb6bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
23 deletions
+28
-23
unit_testing/test_typed_remote_actor.cpp
unit_testing/test_typed_remote_actor.cpp
+28
-23
No files found.
unit_testing/test_typed_remote_actor.cpp
View file @
e211c2aa
...
...
@@ -75,7 +75,7 @@ uint16_t run_server() {
for
(;;)
{
try
{
io
::
typed_publish
(
ref
,
port
,
"127.0.0.1"
);
CAF_
LOGF_DEBUG
(
"running on port "
<<
port
);
CAF_
PRINT
(
"running on port "
<<
port
);
return
port
;
}
catch
(
bind_failure
&
)
{
...
...
@@ -88,11 +88,15 @@ uint16_t run_server() {
int
main
(
int
argc
,
char
**
argv
)
{
announce
<
ping
>
(
&
ping
::
value
);
announce
<
pong
>
(
&
pong
::
value
);
message_builder
{
argv
+
1
,
argv
+
argc
}
.
apply
({
on
(
"-c"
,
spro
<
uint16_t
>
)
>>
[](
uint16_t
port
)
{
message_builder
{
argv
+
1
,
argv
+
argc
}.
apply
({
on
(
"-c"
,
spro
<
uint16_t
>
)
>>
[](
uint16_t
port
)
{
CAF_PRINT
(
"run in client mode"
);
run_client
(
"localhost"
,
port
);
},
on
(
"-s"
)
>>
[]
{
run_server
();
},
on
()
>>
[
&
]
{
on
(
"-s"
)
>>
[]
{
run_server
();
},
on
()
>>
[
&
]
{
auto
port
=
run_server
();
CAF_CHECKPOINT
();
ostringstream
oss
;
...
...
@@ -109,7 +113,8 @@ int main(int argc, char** argv) {
});
CAF_CHECKPOINT
();
child
.
join
();
}});
}
});
CAF_CHECKPOINT
();
await_all_actors_done
();
shutdown
();
...
...
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