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
e20c2202
Commit
e20c2202
authored
2 years ago
by
Leon Dietrich
Browse files
Options
Downloads
Patches
Plain Diff
fix: missing package size deduction
parent
0ac60b28
No related branches found
No related tags found
No related merge requests found
Pipeline
#7616
failed
2 years ago
Stage: prebuild
Stage: build
Stage: testing
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/net/udp_client.hpp
+3
-1
3 additions, 1 deletion
src/net/udp_client.hpp
with
3 additions
and
1 deletion
src/net/udp_client.hpp
+
3
−
1
View file @
e20c2202
...
...
@@ -46,11 +46,13 @@ public:
/**
* This method copies the content of data on the write queue and schedules its transmission to destination.
* It needs to know the packet size of the udp packet, provided by the template.
* @brief Send a udp packet
* @param destination The destination to send it to
* @param data The data to be send
*/
void
send_packet
(
const
socketaddr
&
destination
,
const
udp_packet
<>&
data
)
{
template
<
size_t
packet_size
>
inline
void
send_packet
(
const
socketaddr
&
destination
,
const
udp_packet
<
packet_size
>&
data
)
{
this
->
write_data
(
std
::
forward
<
iorecord
>
(
iorecord
{
data
.
raw
(),
data
.
size
(),
destination
}));
}
...
...
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