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
89e2ce1a
Commit
89e2ce1a
authored
Apr 29, 2014
by
Kenton Varda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:kentonv/capnproto
parents
4328bc6a
30c7de63
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ez-rpc.c++
c++/src/capnp/ez-rpc.c++
+2
-2
ez-rpc.h
c++/src/capnp/ez-rpc.h
+3
-1
No files found.
c++/src/capnp/ez-rpc.c++
View file @
89e2ce1a
...
...
@@ -114,7 +114,7 @@ struct EzRpcClient::Impl {
clientContext
=
kj
::
heap
<
ClientContext
>
(
kj
::
mv
(
stream
));
}).
fork
())
{}
Impl
(
struct
sockaddr
*
serverAddress
,
uint
addrSize
)
Impl
(
const
struct
sockaddr
*
serverAddress
,
uint
addrSize
)
:
context
(
EzRpcContext
::
getThreadLocal
()),
setupPromise
(
context
->
getIoProvider
().
getNetwork
()
.
getSockaddr
(
serverAddress
,
addrSize
)
->
connect
()
...
...
@@ -132,7 +132,7 @@ struct EzRpcClient::Impl {
EzRpcClient
::
EzRpcClient
(
kj
::
StringPtr
serverAddress
,
uint
defaultPort
)
:
impl
(
kj
::
heap
<
Impl
>
(
serverAddress
,
defaultPort
))
{}
EzRpcClient
::
EzRpcClient
(
struct
sockaddr
*
serverAddress
,
uint
addrSize
)
EzRpcClient
::
EzRpcClient
(
const
struct
sockaddr
*
serverAddress
,
uint
addrSize
)
:
impl
(
kj
::
heap
<
Impl
>
(
serverAddress
,
addrSize
))
{}
EzRpcClient
::
EzRpcClient
(
int
socketFd
)
...
...
c++/src/capnp/ez-rpc.h
View file @
89e2ce1a
...
...
@@ -26,6 +26,8 @@
#include "rpc.h"
struct
sockaddr
;
namespace
kj
{
class
AsyncIoProvider
;
class
LowLevelAsyncIoProvider
;
}
namespace
capnp
{
...
...
@@ -102,7 +104,7 @@ public:
// The address is parsed by `kj::Network` in `kj/async-io.h`. See that interface for more info
// on the address format, but basically it's what you'd expect.
EzRpcClient
(
struct
sockaddr
*
serverAddress
,
uint
addrSize
);
EzRpcClient
(
const
struct
sockaddr
*
serverAddress
,
uint
addrSize
);
// Like the above constructor, but connects to an already-resolved socket address. Any address
// format supported by `kj::Network` in `kj/async-io.h` is accepted.
...
...
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