Jacob Dlougach
35ab5bc616
Include <memory> for std::unique_ptr
...
Currently `#include <grpcpp/support/interceptor.h>` in some compilers (gcc 8, for example) will fail due to missing `<memory>` include. This PR fixes this issue.
5 years ago
Yash Tibrewal
f671b3d136
Add hijacking interception hook points as valid for the GetRecv* functions
6 years ago
Yuwei Huang
3cbf4f50ea
Remove extra semicolons after function definitions
...
We are planning to enable -Wextra-semi flag in our project but some
header files in gRPC have extra semicolons that violates the check and
blocks us from enabling the flag.
This change removes unnecessary semicolons in the code. Note that having
semicolon after the GRPC_ABSTRACT macro technically also violates the
check, but it's fine for us since they are not used in public headers,
and it will be confusing to have lines ending only with GRPC_ABSTRACT,
so I keep them as-is.
6 years ago
Yash Tibrewal
89ee1a8b10
Improved interception docs
6 years ago
Yash Tibrewal
73b1a918e4
Slight update to grammar. Can probably be improved more
6 years ago
Yash Tibrewal
b8a542cd23
Update Send message interception methods docs
6 years ago
Yash Tibrewal
b35b449166
Update docs according to #17630
6 years ago
Yash Tibrewal
9b9ef64027
Add more information on the usage of FailHijackedRecvMessage
6 years ago
Yash Tibrewal
7eeda22d9e
s/two/three
6 years ago
Yash Tibrewal
4224384d39
Modifying semantics for GetSendMessage and GetSerializedSendMessage.
...
Also adding ModifySendMessage
6 years ago
Yash Tibrewal
50c60f03ba
Rename GetSendMessage to GetSerializedSendMessage and GetOriginalSendMessage to GetSendMessage
6 years ago
Yash Tibrewal
4aeba42528
Provide GetOriginalSendMessage for some APIs
6 years ago
Vijay Pai
cfe08f35f3
Add comments explaining purpose and validity of interception API
6 years ago
Yash Tibrewal
d4ebd30eb2
Add method to get status of send message op on POST_SEND_MESSAGE
6 years ago
Yash Tibrewal
0911e489e3
Add a method to check whether the message was received successfully
6 years ago
Yash Tibrewal
5d7d6c0fbd
Add method to fail hijacked send messages
6 years ago
Yash Tibrewal
699c10386d
Add method to fail recv msg for hijacked rpcs
6 years ago
Yash Tibrewal
a803f96e5a
Add comment on cancellation being forever alone in the batch
6 years ago
Yash Tibrewal
ddcadad5b5
Add note on hijacking
6 years ago
Yash Tibrewal
3ece34d45c
Let us clean a few things before getting started
6 years ago
Yash Tibrewal
85ddf5c713
Get ClientContext included with ChannelInterface, and slight more cleanup
6 years ago
Yash Tibrewal
cc21d32c77
Some cleanup
6 years ago
Yash Tibrewal
9b83b7d19e
Adding intercepted channel
6 years ago
Yash Tibrewal
52765e9cb1
Don't expose internal functions.. Add a layer of indirection namely InternalInterceptorBatchMethods
6 years ago
Yash Tibrewal
b232bacf27
Starting on server interceptors
6 years ago
Yash Tibrewal
f9fe345553
Add more tests for client interceptors
6 years ago
Yash Tibrewal
cc8c27950c
Change types to use C++ types rather than core types
6 years ago
Yash Tibrewal
6fb7bd23bf
s/GPR_ASSERT/GPR_CODEGEN_ASSERT and few more bugs
6 years ago
Yash Tibrewal
63bdf4e236
More changes for client interception
6 years ago
Yash Tibrewal
5d831da9d1
Adding hook points for interception. Code compiles and tests still run
6 years ago
Yash Tibrewal
b741edf37e
Error fixes
6 years ago
Yash Tibrewal
a1598c5abf
Create interfaces and initial plumbing for interception API
6 years ago