Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
5b213b05
Commit
5b213b05
authored
Nov 06, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/FullyBufferedSocket: make WriteFromBuffer() protected
.. and rename it to Flush().
parent
ad27d069
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
FullyBufferedSocket.cxx
src/event/FullyBufferedSocket.cxx
+2
-2
FullyBufferedSocket.hxx
src/event/FullyBufferedSocket.hxx
+2
-2
No files found.
src/event/FullyBufferedSocket.cxx
View file @
5b213b05
...
...
@@ -54,7 +54,7 @@ FullyBufferedSocket::DirectWrite(const void *data, size_t length)
}
bool
FullyBufferedSocket
::
WriteFromBuffer
()
FullyBufferedSocket
::
Flush
()
{
assert
(
IsDefined
());
...
...
@@ -128,7 +128,7 @@ FullyBufferedSocket::OnSocketReady(unsigned flags)
if
(
flags
&
WRITE
)
{
assert
(
!
output
.
IsEmpty
());
if
(
!
WriteFromBuffer
())
if
(
!
Flush
())
return
false
;
}
...
...
src/event/FullyBufferedSocket.hxx
View file @
5b213b05
...
...
@@ -44,14 +44,14 @@ public:
private
:
ssize_t
DirectWrite
(
const
void
*
data
,
size_t
length
);
protected
:
/**
* Send data from the output buffer to the socket.
*
* @return false if the socket has been closed
*/
bool
WriteFromBuffer
();
bool
Flush
();
protected
:
/**
* @return false if the socket has been closed
*/
...
...
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