Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
148f65b1
Commit
148f65b1
authored
Sep 23, 2017
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add default implementation of wrapUnixSocketFd for backwards-compatibility.
parent
05a04e02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
async-io.c++
c++/src/kj/async-io.c++
+5
-0
async-io.h
c++/src/kj/async-io.h
+4
-1
No files found.
c++/src/kj/async-io.c++
View file @
148f65b1
...
...
@@ -241,6 +241,11 @@ Own<DatagramPort> LowLevelAsyncIoProvider::wrapDatagramSocketFd(
Fd
fd
,
LowLevelAsyncIoProvider
::
NetworkFilter
&
filter
,
uint
flags
)
{
KJ_UNIMPLEMENTED
(
"Datagram sockets not implemented."
);
}
#if !_WIN32
Own
<
AsyncCapabilityStream
>
LowLevelAsyncIoProvider
::
wrapUnixSocketFd
(
Fd
fd
,
uint
flags
)
{
KJ_UNIMPLEMENTED
(
"Unix socket with FD passing not implemented."
);
}
#endif
CapabilityPipe
AsyncIoProvider
::
newCapabilityPipe
()
{
KJ_UNIMPLEMENTED
(
"Capability pipes not implemented."
);
}
...
...
c++/src/kj/async-io.h
View file @
148f65b1
...
...
@@ -574,9 +574,12 @@ public:
// `flags` is a bitwise-OR of the values of the `Flags` enum.
#if !_WIN32
virtual
Own
<
AsyncCapabilityStream
>
wrapUnixSocketFd
(
Fd
fd
,
uint
flags
=
0
)
=
0
;
virtual
Own
<
AsyncCapabilityStream
>
wrapUnixSocketFd
(
Fd
fd
,
uint
flags
=
0
);
// Like wrapSocketFd() but also support capability passing via SCM_RIGHTS. The socket must be
// a Unix domain socket.
//
// The default implementation throws UNIMPLEMENTED, for backwards-compatibility with
// LowLevelAsyncIoProvider implementations written before this method was added.
#endif
virtual
Promise
<
Own
<
AsyncIoStream
>>
wrapConnectingSocketFd
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment