Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ReadMailReallyFast
code
Merge requests
!1
First unit tests
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
First unit tests
first_unit_tests
into
master
Overview
47
Commits
42
Pipelines
32
Changes
3
Merged
Leon Dietrich
requested to merge
first_unit_tests
into
master
2 years ago
Overview
25
Commits
42
Pipelines
32
Changes
3
Expand
Bugs that still remain:
The socketaddr factory (DNS lookup) does not yet seam to be fully functional.
UDP socket test needs to pass
TCP socket test needs to pass
Unit Test for socketaddr Factory lookups
Segfault at test shutdown needs to be fixed.
fcntl needs to be checked for correct flag retuns
Edited
2 years ago
by
Leon Dietrich
0
0
Merge request reports
Viewing commit
cfbce152
Prev
Next
Show latest version
3 files
+
44
−
56
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
cfbce152
chg: ioqueue interface changes
· cfbce152
Benny Baumann
authored
2 years ago
src/net/ioqueue.cpp
+
0
−
46
Options
@@ -41,50 +41,4 @@ void iorecord::advance(size_t amount) {
this
->
offset
+=
std
::
min
(
amount
,
this
->
size
());
}
ioqueue
::
ioqueue
()
:
queue
{}
{
// NOP
}
ioqueue
::~
ioqueue
()
{
// NOP
}
bool
ioqueue
::
empty
()
const
{
return
this
->
queue
.
empty
();
}
void
ioqueue
::
push_back
(
const
iorecord
&
data
)
{
if
(
!
data
.
empty
())
{
this
->
queue
.
push_back
(
data
);
}
}
void
ioqueue
::
push_back
(
iorecord
&&
data
)
{
if
(
!
data
.
empty
())
{
this
->
queue
.
emplace_back
(
std
::
forward
<
iorecord
>
(
data
));
}
}
void
ioqueue
::
push_front
(
const
iorecord
&
data
)
{
if
(
!
data
.
empty
())
{
this
->
queue
.
push_front
(
data
);
}
}
void
ioqueue
::
push_front
(
iorecord
&&
data
)
{
if
(
!
data
.
empty
())
{
this
->
queue
.
emplace_front
(
std
::
forward
<
iorecord
>
(
data
));
}
}
iorecord
ioqueue
::
pop_front
()
{
if
(
this
->
empty
())
{
return
iorecord
{};
}
iorecord
result
=
this
->
queue
.
front
();
this
->
queue
.
pop_front
();
return
result
;
}
}
// namespace rmrf::net
Loading