Craig Tiller
d251ab9e71
Attempt to better explain secure server creation
10 years ago
Craig Tiller
a0e34a0b90
Expand init/destroy documentation
10 years ago
Craig Tiller
29f2b219a8
Add channel argument documentation
10 years ago
Craig Tiller
aea2fc053d
Fix shutdown semantics.
...
Document what they should be, ensure they're triggered, and fix what was broken.
10 years ago
Craig Tiller
ab294db744
Add some comments
10 years ago
Yang Gao
f2c0ca4c62
Add setter to override authority header on ClientContext
10 years ago
Craig Tiller
573523f127
clang-format
10 years ago
Nathaniel Manista
6d41a054f9
Documentation tweaks in grpc.h.
10 years ago
Yang Gao
406b32f663
Add missing APIs and a first metadata test, and test passes
10 years ago
Nicolas "Pixel" Noble
fbdd7abdca
Cleaning up our posix definition / usage.
...
-) Let's not use _POSIX_SOURCE. It usually implies too much C99. _BSD_SOURCE would be the right thing to do here.
-) _BSD_SOURCE is getting deprecated by glibc, so we also have to define _DEFAULT_SOURCE under Linux.
-) accept4 and eventfd arn't as old as we may think; let's detect for it.
-) stdint.h interferes with all these definitions if included too early; let's move it down.
10 years ago
Craig Tiller
8c22f05f21
Minor compile fix
10 years ago
Yang Gao
005f18a6a1
change ServerAsyncReader API and add a simple clientstreaming test, it passes
10 years ago
Yang Gao
0c7aafaa0c
change AddRecvMessage signature
10 years ago
Yang Gao
c17e861aa0
more nullptr for got_message
10 years ago
Craig Tiller
0220cf14b0
Add end2end async unary single threaded test (compiles)
10 years ago
Craig Tiller
c645306b64
Fixes
10 years ago
Yang Gao
31150f01db
implement async unary call
10 years ago
Yang Gao
cbcc977857
fix sync unary call with metadata pieces
10 years ago
Craig Tiller
ec3257c120
Fix end2end leaks
10 years ago
Yang Gao
068c85b21c
make codegen generate async client calls
10 years ago
Craig Tiller
d4ebeeb7fb
Async server streaming
10 years ago
Craig Tiller
3d6ceb6461
Async server dispatch
10 years ago
Yang Gao
5705fe3fca
Add a cq argument in ClientAsync ctor and give it to the Call
10 years ago
Craig Tiller
1c9a2a91ca
Async API progress
10 years ago
Yang Gao
0b18a8bd4c
typo fix
10 years ago
Yang Gao
106906924f
implement ServerAsyncResponseWriter for unary call
10 years ago
Yang Gao
a38feb9be7
Implement async streaming APIs
10 years ago
Craig Tiller
8c8d0aa1d8
Async API progress
10 years ago
Yang Gao
424bc92e37
implement ClientAsyncX api
10 years ago
Yang Gao
ea222b2001
resolve comments, the context_ member needs protection for thread safety
10 years ago
Craig Tiller
20bc56d890
Multi-completion-queue-server
...
Allow binding a different completion queue to each registered method.
This will allow multiplexing for the C++ server between sync & async
methods more easily.
10 years ago
Yang Gao
3ccdbe9bcc
Make SendInitialMetadata work.
10 years ago
Yang Gao
b492f06c9d
Add SendInitialMetadata() to server streaming interfaces
10 years ago
Yang Gao
fd7199f64e
Add client side WaitForInitialMetadata for streaming.
10 years ago
Craig Tiller
fada7d43b1
Add some documentation
10 years ago
Craig Tiller
a847a8f8bc
Finish streaming, lame client
10 years ago
Craig Tiller
0156752a66
Some streaming progress
10 years ago
Craig Tiller
504bd331ab
Make sure we get a close before stopping the server
10 years ago
Nicolas Noble
d3ae976ac0
Not all Linuxes are equal, and secure_getenv isn't always there.
...
Let's include <features.h> to figure out if the system we're on is supporting secure_getenv, and adapt accordingly.
I suspect we might want to do the same with epoll, as it was added to glibc in 2.3.2, and eventfd has been added to glibc in 2.8.
10 years ago
Craig Tiller
47a573602a
Fix ownership
10 years ago
Yang Gao
968ca530b2
Add trailing metadata to client context and use it.
10 years ago
Craig Tiller
9dcb0f8e1d
Send initial metadata
10 years ago
Yang Gao
2382293226
Make it compile
10 years ago
Yang Gao
f1258c4951
save before the change
10 years ago
Craig Tiller
bb5227fc39
Allow server to hook calls also, fix crash
10 years ago
David Klempner
fdd42cfa4e
Actually include the port_platform.h epoll change too
10 years ago
Craig Tiller
a5c0e7bc46
Initial metadata fix
10 years ago
Craig Tiller
3b29b566a2
Just use one completion queue per server for delivering completions
...
This simplifies (drastically) the polling story, although will slightly
complicate mixing sync & async servers - but we're not there yet.
10 years ago
Craig Tiller
854a30c73a
More implementation
10 years ago
Yang Gao
eb8e7cd922
Implement FinalizeResult
10 years ago