Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
wiback
senf
Commits
35a507fe
Commit
35a507fe
authored
15 years ago
by
g0dil
Browse files
Options
Downloads
Patches
Plain Diff
PPI: Add missing TargetDgramWriter doku
parent
daa32d88
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PPI/SocketSink.hh
+16
-4
16 additions, 4 deletions
PPI/SocketSink.hh
with
16 additions
and
4 deletions
PPI/SocketSink.hh
+
16
−
4
View file @
35a507fe
...
@@ -65,19 +65,31 @@ namespace ppi {
...
@@ -65,19 +65,31 @@ namespace ppi {
\param[in] packet Packet to write */
\param[in] packet Packet to write */
};
};
/** \brief Writer sending data with ClientSocketHandle::writeto()
This writer will send out data using ClientSocketHandle::writeto(). The target address can
be specified in the writer constructor and can be adjusted at any time.
If no target address is set, incoming data will be <em>silently dropped</em>.
*/
template
<
class
HandleType
>
template
<
class
HandleType
>
class
TargetDgramWriter
class
TargetDgramWriter
{
{
public:
public:
typedef
HandleType
Handle
;
typedef
HandleType
Handle
;
TargetDgramWriter
();
TargetDgramWriter
();
///< Create TargetDgramWriter with unset target address
TargetDgramWriter
(
typename
Handle
::
Address
const
&
target
);
TargetDgramWriter
(
typename
Handle
::
Address
const
&
target
);
///< Create TargetDgramWriter sending to \a target
typename
Handle
::
Address
target
()
const
;
typename
Handle
::
Address
target
()
const
;
///< Get current target address
void
target
(
typename
Handle
::
Address
const
&
target
);
void
target
(
typename
Handle
::
Address
const
&
target
);
///< Set target address
void
operator
()(
Handle
handle
,
Packet
const
&
packet
);
void
operator
()(
Handle
handle
,
Packet
const
&
packet
);
///< Write \a packet to \a handle
/**< Write the complete \a packet as a datagram to \a
handle.
\param[in] handle Handle to write data to
\param[in] packet Packet to write */
private:
private:
typename
Handle
::
Address
target_
;
typename
Handle
::
Address
target_
;
...
...
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