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
80a16139
Commit
80a16139
authored
17 years ago
by
dw6
Browse files
Options
Downloads
Patches
Plain Diff
connectedUnixDgramSocket working
parent
60f3c94f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Socket/Protocols/UN/ConnectedUNDatagramSocketHandle.cc
+59
-0
59 additions, 0 deletions
Socket/Protocols/UN/ConnectedUNDatagramSocketHandle.cc
Socket/Protocols/UN/ConnectedUNDatagramSocketHandle.hh
+2
-1
2 additions, 1 deletion
Socket/Protocols/UN/ConnectedUNDatagramSocketHandle.hh
with
61 additions
and
1 deletion
Socket/Protocols/UN/ConnectedUNDatagramSocketHandle.cc
0 → 100644
+
59
−
0
View file @
80a16139
// Copyright (C) 2007
// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
// Kompetenzzentrum NETwork research (NET)
// David Wagner <david.wagner@fokus.fraunhofer.de>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
\brief ConnectedUNDatagramSocketHandle non-inline non-template implementation */
#include
"ConnectedUNDatagramSocketHandle.hh"
// Custom includes
#include
<sys/socket.h>
#include
<sys/types.h>
#include
<sys/ioctl.h>
#include
"../../../Utils/Exception.hh"
//#include "UNDatagramSocketHandle.mpp"
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
prefix_
void
senf
::
ConnectedUNDatagramSocketProtocol
::
init_client
()
const
{
int
sock
=
::
socket
(
PF_UNIX
,
SOCK_DGRAM
,
0
);
if
(
sock
<
0
)
throwErrno
();
fd
(
sock
);
}
prefix_
void
senf
::
ConnectedUNDatagramSocketProtocol
::
init_client
(
UNSocketAddress
const
&
address
)
const
{
init_client
();
connect
(
address
);
}
prefix_
std
::
auto_ptr
<
senf
::
SocketProtocol
>
senf
::
ConnectedUNDatagramSocketProtocol
::
clone
()
const
{
return
std
::
auto_ptr
<
SocketProtocol
>
(
new
ConnectedUNDatagramSocketProtocol
());
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
//#include "UNDatagramSocketHandle.mpp"
This diff is collapsed.
Click to expand it.
Socket/Protocols/UN/ConnectedUNDatagramSocketHandle.hh
+
2
−
1
View file @
80a16139
...
...
@@ -74,7 +74,8 @@ namespace senf {
:
public
ConcreteSocketProtocol
<
ConnectedUNDatagramSocket_Policy
>
,
public
UNProtocol
,
public
BSDSocketProtocol
,
public
AddressableBSDSocketProtocol
public
AddressableBSDSocketProtocol
,
public
senf
::
pool_alloc_mixin
<
ConnectedUNDatagramSocketProtocol
>
{
public:
///////////////////////////////////////////////////////////////////////////
...
...
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