Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
1c855799
Commit
1c855799
authored
Mar 04, 2011
by
JINMEI Tatuya
Browse files
[master] minor editorial fixes: typo in comments, missing braces (style matter)
skipping review.
parent
242cb681
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/asiolink/tcp_server.cc
View file @
1c855799
...
...
@@ -65,7 +65,7 @@ TCPServer::TCPServer(io_service& io_service,
void
TCPServer
::
operator
()(
error_code
ec
,
size_t
length
)
{
/// Because the coroutine ree
e
ntry block is implemented as
/// Because the coroutine reentry block is implemented as
/// a switch statement, inline variable declarations are not
/// permitted. Certain variables used below can be declared here.
...
...
@@ -196,9 +196,10 @@ TCPServer::asyncLookup() {
}
void
TCPServer
::
stop
()
{
//server should not be stopped twice
if
(
stopped_by_hand_
)
//
server should not be stopped twice
if
(
stopped_by_hand_
)
{
return
;
}
stopped_by_hand_
=
true
;
acceptor_
->
close
();
...
...
src/lib/asiolink/udp_server.cc
View file @
1c855799
...
...
@@ -169,7 +169,7 @@ UDPServer::UDPServer(io_service& io_service, const ip::address& addr,
/// pattern; see internal/coroutine.h for details.
void
UDPServer
::
operator
()(
error_code
ec
,
size_t
length
)
{
/// Because the coroutine ree
e
ntry block is implemented as
/// Because the coroutine reentry block is implemented as
/// a switch statement, inline variable declarations are not
/// permitted. Certain variables used below can be declared here.
...
...
Write
Preview
Supports
Markdown
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