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
Commits
86e28885
Commit
86e28885
authored
2 years ago
by
Benny Baumann
Browse files
Options
Downloads
Patches
Plain Diff
chg: Move connection_client ctor/dtor to header
parent
5a1a0d3b
No related branches found
No related tags found
1 merge request
!1
First unit tests
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/net/connection_client.cpp
+0
-12
0 additions, 12 deletions
src/net/connection_client.cpp
src/net/connection_client.hpp
+4
-2
4 additions, 2 deletions
src/net/connection_client.hpp
with
4 additions
and
14 deletions
src/net/connection_client.cpp
+
0
−
12
View file @
86e28885
...
@@ -6,15 +6,3 @@
...
@@ -6,15 +6,3 @@
*/
*/
#include
"net/connection_client.hpp"
#include
"net/connection_client.hpp"
namespace
rmrf
::
net
{
connection_client
::
connection_client
()
:
in_data_cb
{}
{
// Nothing to do here
}
inline
void
connection_client
::
set_incomming_data_callback
(
const
incomming_data_cb
&
cb
)
{
this
->
in_data_cb
=
cb
;
}
}
This diff is collapsed.
Click to expand it.
src/net/connection_client.hpp
+
4
−
2
View file @
86e28885
...
@@ -21,7 +21,7 @@ protected:
...
@@ -21,7 +21,7 @@ protected:
incomming_data_cb
in_data_cb
;
incomming_data_cb
in_data_cb
;
public:
public:
connection_client
();
connection_client
()
:
in_data_cb
{}
{}
;
/**
/**
* Use this method to send data to the other endpoint.
* Use this method to send data to the other endpoint.
...
@@ -33,7 +33,9 @@ public:
...
@@ -33,7 +33,9 @@ public:
* called when the client got data to process.
* called when the client got data to process.
* @param cb The callback function to register [void(std::string data)]
* @param cb The callback function to register [void(std::string data)]
*/
*/
void
set_incomming_data_callback
(
const
incomming_data_cb
&
cb
);
inline
void
set_incomming_data_callback
(
const
incomming_data_cb
&
cb
)
{
this
->
in_data_cb
=
cb
;
};
};
};
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment