Commit Graph

260 Commits

Author SHA1 Message Date
Craig Tiller d9dd8fee04 Merge github.com:grpc/grpc into c++api 2015-02-11 18:19:24 -08:00
Craig Tiller 39550b6c4c Merge pull request #9 from yang-g/c++api
Add trailing metadata to client context and use it.
2015-02-11 16:50:09 -08:00
Craig Tiller 47a573602a Fix ownership 2015-02-11 16:31:45 -08:00
Yang Gao 968ca530b2 Add trailing metadata to client context and use it. 2015-02-11 16:23:47 -08:00
Craig Tiller 9dcb0f8e1d Send initial metadata 2015-02-11 15:36:31 -08:00
Yang Gao 2382293226 Make it compile 2015-02-11 13:59:25 -08:00
Yang Gao 1464bc175d resolve conflict 2015-02-11 13:48:28 -08:00
Yang Gao f1258c4951 save before the change 2015-02-11 13:44:11 -08:00
Craig Tiller bb5227fc39 Allow server to hook calls also, fix crash 2015-02-11 13:34:48 -08:00
David Klempner fdd42cfa4e Actually include the port_platform.h epoll change too 2015-02-11 13:34:04 -08:00
Craig Tiller a5c0e7bc46 Initial metadata fix 2015-02-11 13:14:49 -08:00
David Klempner 53eae7a3e0 Merge branch 'master' into epoll 2015-02-11 13:07:19 -08:00
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.
2015-02-11 12:58:46 -08:00
Yang Gao a5e2a03fec Merge branch 'c++api' of github.com:ctiller/grpc into c++api 2015-02-11 11:45:33 -08:00
Yang Gao 99b07d1ea7 fix conflict 2015-02-11 11:45:22 -08:00
Craig Tiller 854a30c73a More implementation 2015-02-11 11:44:10 -08:00
Yang Gao eb8e7cd922 Implement FinalizeResult 2015-02-11 11:43:40 -08:00
Craig Tiller 04c8ff0245 Fix FinalizeResult signature 2015-02-11 11:01:07 -08:00
Craig Tiller b84aab7922 Merge branch 'c++api' of github.com:ctiller/grpc into c++api 2015-02-11 10:51:23 -08:00
Craig Tiller c416577636 Server progress 2015-02-11 10:51:04 -08:00
Yang Gao 6d6b90376b Release write buffer in FinalizeResult 2015-02-11 10:19:20 -08:00
Craig Tiller 2dac79770e Merge github.com:grpc/grpc into c++api 2015-02-11 08:10:49 -08:00
Craig Tiller 187994e0fd Merge pull request #448 from nicolasnoble/grpc-win32
Windows port of iomgr.
2015-02-11 08:09:03 -08:00
Craig Tiller 1e67aeed22 Merge pull request #5 from yang-g/c++api
Implement FillOps
2015-02-11 07:51:45 -08:00
Yang Gao d5a04bdc6e Implement FillOps 2015-02-11 00:04:32 -08:00
David Klempner baced4def0 Epoll based multipoller
This is a multipoller based on epoll rather than poll.

Note that this implementation is aimed at correctness rather than
performance, although it should immediately have better scalability to
large numbers of FDs, both due to epoll's O(1) sized API and due to not
needing to wake up polling threads to do interest set changes.

One notable difference here is that we directly attach a wakeup fd
rather than using the freelisting kick mechanism that the poll() based
implementations use, because modifying the epoll set to use a different
kick fd each time isn't free.
2015-02-10 20:12:15 -08:00
Craig Tiller cbd0485088 Simplify server ready for async path 2015-02-10 17:39:54 -08:00
Craig Tiller 8e8fd89faf Allow two completion queues on request call
One for the new rpc notification, the other is bound to the new call.
This will make async c++ soooo much easier.
2015-02-10 17:02:08 -08:00
Craig Tiller d608892313 Merge pull request #4 from yang-g/c++api
call implementation part 1
2015-02-10 14:29:29 -08:00
Yang Gao 7eb7d75c51 call implementation before the meeting 2015-02-10 14:23:15 -08:00
Craig Tiller 24be0f79e2 Rewrite server request startup path
Stub in registered methods, cleanup to the point I understand this code
again.
2015-02-10 14:04:22 -08:00
Craig Tiller 20f4af2e36 Move call.h -> impl/call.h 2015-02-10 09:52:15 -08:00
Craig Tiller 9d972e4628 Merge github.com:grpc/grpc into c++api 2015-02-10 09:36:08 -08:00
Craig Tiller f9a06a78cb Remove temp code 2015-02-09 22:14:52 -08:00
Craig Tiller 549a74daa8 Rephrase async streaming methods
To ensure that the CallOpBuffers stay alive until completion.
2015-02-09 22:13:44 -08:00
Craig Tiller 0a5bcbc632 Add some documentation 2015-02-09 21:39:04 -08:00
Craig Tiller 80e00a8c63 Stub out unary call wrapper 2015-02-09 20:54:25 -08:00
Craig Tiller de917062ec Refine completion queue 2015-02-09 17:15:03 -08:00
Craig Tiller 7630205bdf Add missing ifdef 2015-02-09 16:47:40 -08:00
Nicolas "Pixel" Noble 811b07876c Merge branch 'master' of github.com:google/grpc into grpc-win32 2015-02-10 01:26:37 +01:00
Craig Tiller 5319164875 Cleanup 2015-02-09 16:15:23 -08:00
Craig Tiller 8de8c646c5 Merge pull request #3 from yang-g/c++api
more implementation and all async signatures
2015-02-09 16:12:36 -08:00
Craig Tiller b470169252 Remove more unnecessary files 2015-02-09 16:12:00 -08:00
Yang Gao 75ec2b191c more implementation and all async signatures 2015-02-09 16:03:41 -08:00
Craig Tiller 40fcdaff0a Remove stream_context 2015-02-09 15:43:34 -08:00
Craig Tiller 1d2e21962e Server progress 2015-02-09 15:25:21 -08:00
Craig Tiller 061754a483 Cleanup some cruft 2015-02-09 14:56:49 -08:00
Craig Tiller 1801e420de Fix include paths 2015-02-09 14:27:35 -08:00
Craig Tiller 9407a3e807 Merge pull request #2 from yang-g/c++api
ServerReader impl with new API
2015-02-09 14:25:06 -08:00
Yang Gao 8a3bbb5c55 ServerReader with new API 2015-02-09 14:10:59 -08:00
Craig Tiller 20781ccf54 Merge pull request #1 from yang-g/c++api
C++api
2015-02-09 13:48:28 -08:00
Craig Tiller 0db1befae1 Progress 2015-02-09 13:47:39 -08:00
Yang Gao 5f4f0c3170 remove explicit 2015-02-09 13:45:28 -08:00
Craig Tiller 14a65f9760 Further progress 2015-02-09 13:13:14 -08:00
Craig Tiller 2dff17d33b Async API declarations 2015-02-09 12:42:23 -08:00
Craig Tiller df2c957eee Fix compile error 2015-02-09 10:49:38 -08:00
Craig Tiller 7f78d71b8d Add initial metadata stub 2015-02-09 10:47:32 -08:00
Craig Tiller 50950712c1 Further progress 2015-02-09 10:38:38 -08:00
Craig Tiller c4965751a0 Starting to scratch out the API 2015-02-09 09:51:00 -08:00
Craig Tiller 2ca4708921 Merge branch 'async-api-new' into c++api 2015-02-09 09:25:45 -08:00
Craig Tiller 6135107e4a New completion queue 2015-02-06 17:17:24 -08:00
Craig Tiller c56b2cb33c Add comments 2015-02-05 16:35:38 -08:00
Craig Tiller aa2ac59b5c Merge github.com:google/grpc into async-api-new 2015-02-05 13:44:05 -08:00
Yang Gao f229d4fd4d Merge pull request #359 from jboeuf/ssl_default_creds_integration
Adding support for loading the SSL roots from an environment variable.
2015-02-05 13:19:52 -08:00
Craig Tiller 4f9727326e Fix memory usage 2015-02-05 12:40:20 -08:00
Craig Tiller b7800c1544 Add some comments 2015-02-04 18:25:38 -08:00
Craig Tiller 2ea1074bd9 Merge github.com:google/grpc into async-api-new 2015-02-04 17:32:28 -08:00
Julien Boeuf 7413f10832 Adding linux specific env implementation. 2015-02-04 17:00:08 -08:00
Craig Tiller 4b6ab78f36 Merge github.com:google/grpc into async-api 2015-02-04 16:32:56 -08:00
Nicolas "Pixel" Noble 900dadb2df Merge branch 'master' of github.com:google/grpc into grpc-win32
Conflicts:
	include/grpc/support/time_win32.h
2015-02-04 23:41:51 +01:00
Nicolas "Pixel" Noble ee0c96c7fc Second draft of the win32 implementation.
-) Client code is now threadsafe.
-) The echo_client code runs and succeeds.
2015-02-04 23:35:41 +01:00
David Klempner 0c61dc52a1 Remove the platform specific time headers 2015-02-04 13:24:04 -08:00
David Klempner 01a0fb05a9 Merge branch 'master' into timespec 2015-02-04 13:14:13 -08:00
Craig Tiller 5de37830ad Merge pull request #392 from dklempner/timeval
Remove timeval functions
2015-02-04 13:03:32 -08:00
Craig Tiller d77c92bd98 Merge github.com:google/grpc into async-api-new 2015-02-04 12:25:17 -08:00
David Klempner c15622b95c Remove timeval functions
They only had one caller, which could easily be converted to use
timespec instead of timeval.
2015-02-04 12:02:17 -08:00
David Klempner 9b60fa3acd Make gpr_timespec no longer be a typedef for struct timespec in posix
The problem is that for the typedef to work we need _POSIX_C_SOURCE to
be defined properly before any file that uses gpr_timespec includes
anything. This is extremely fragile unless we change CFLAGS, which
probably isn't worth doing for this.
2015-02-04 09:48:53 -08:00
Craig Tiller ea61b07800 Updated the first test (which fails) 2015-02-03 19:19:27 -08:00
Nicolas "Pixel" Noble 21f627ad0a First draft of the win32 implementation of iomgr.
Caveats:
-) The win32 pollset isn't threadsafe (yet).
-) Only client code is implemented.
-) Only very simple code has been tested with it yet.
2015-02-04 02:13:04 +01:00
Julien Boeuf 4a0a394758 Fixing tsan errors in OpenSSL (#319)
- Added cross-platform implementation of gpr_thd_currentid();
- OpenSSL still shows some TSAN errors on OPENSSL_cleanse which is
  inherently not thread-safe but this should not matter:
  see
  http://stackoverflow.com/questions/26433772/why-does-openssl-cleanse-look-so-complex-and-thread-unsafe
2015-02-03 15:04:45 -08:00
Craig Tiller fb189f826e Flesh out batch API 2015-02-03 12:07:07 -08:00
Craig Tiller 034929cc31 Flesh out new API 2015-02-03 12:00:05 -08:00
Julien Boeuf 026a417def Adding support for loading the SSL roots from an environment variable.
- Had to add support for files and environment variables as well.
- I can't compile on windows so I'm sure there will be some issues.
- Tested end-to-end with the simple ssl fullstack test.
2015-02-02 18:36:37 -08:00
Craig Tiller fef766933e Back-end for new core API 2015-02-02 16:44:26 -08:00
Craig Tiller c4f0ebe63b Prepare for the new batch call API.
Rename all core API functions that are on their way to deprecation with
an _old tag across all wrappings.
2015-02-02 15:39:31 -08:00
Nicolas "Pixel" Noble c8fd2d1c01 Properly selecting chunks of code for the wakeup fd codepath. 2015-01-30 20:23:27 +01:00
Nicolas "Pixel" Noble 213ed91850 Re-enabling errors on warning, disabling unused parameter warning, and fixing all subsequent errors. 2015-01-30 02:11:35 +01:00
Craig Tiller 3b56a57b25 Merge pull request #157 from dklempner/eventfd
Add support for eventfd based kicking on linux.
2015-01-27 16:53:30 -08:00
Yang Gao 3ed874c861 sync up with master 2015-01-27 11:39:14 -08:00
Craig Tiller 6437bd5037 Merge github.com:google/grpc into javascript 2015-01-27 10:18:09 -08:00
David Klempner 6e8bdb9a02 Merge branch 'master' into eventfd
This includes nuking the special pollset_kick_windows.h, since it is no
longer relevant.
2015-01-26 15:37:23 -08:00
David Klempner 78dc6cdaeb Refactor the pipe/eventfd abstraction
This introduces the wakeup fd interface, corresponding approximately to
the existing Google version, complete with a ported giant detailed usage
comment.

The implementation has two layers, "specialized" and "fallback". The
specialized layer is intended to be a suitable platform specific
implementation like eventfd, whereas "fallback" is probably pipe, with
runtime detection of whether the specialized version works on this
system (currently stubbed out).
2015-01-26 15:02:51 -08:00
Yang Gao 5fd0d29dfe run clang-format 2015-01-26 00:19:48 -08:00
jboeuf 10f4620e93 Merge pull request #179 from ctiller/kill-printf
Remove uses of sprintf
2015-01-23 14:28:14 -08:00
Craig Tiller 485d77628d Move string.h to internal code 2015-01-23 12:54:05 -08:00
Craig Tiller 1fa4e15f7e Add define 2015-01-23 12:00:11 -08:00
Craig Tiller c0fc6a1f1f Add gpr_ltoa 2015-01-23 11:12:46 -08:00
murgatroid99 d10c0abaf6 Merge branch 'master' of github.com:google/grpc into merge_new_invoke_api 2015-01-23 09:11:39 -08:00
Craig Tiller 3cc24a6d7f Merge github.com:google/grpc into javascript 2015-01-23 08:08:45 -08:00
Jan Tattermusch ac139dead1 Merge pull request #153 from ctiller/windows-fixes
Windows fixes
2015-01-23 07:44:02 -08:00
David Klempner dbb4f942d0 Add support for eventfd based kicking on linux.
This adds support for eventfd based kicking, with the skeleton of
support for runtime selection between eventfds and pipes.
2015-01-21 17:45:18 -08:00
murgatroid99 48c9c4a59e Resolved merge conflicts with master 2015-01-21 17:12:04 -08:00
Tim Emiola 2021d03168 Merge pull request #149 from murgatroid99/node_bind_port_zero
Bind servers to port 0 in node tests
2015-01-21 16:04:00 -08:00
Craig Tiller dedbae744a Typo fix 2015-01-21 15:37:55 -08:00
Craig Tiller d14a1a5f04 Disable compilation of some files
They're not needed on Windows
2015-01-21 15:26:29 -08:00
Craig Tiller faadd2386c Add some documentation 2015-01-21 14:01:19 -08:00
Craig Tiller c50e398d65 First pass API for serving static data 2015-01-21 13:52:52 -08:00
murgatroid99 c896e192f7 Brought grpc_server_add_secure_http2_port in line with grpc_server_http2_port 2015-01-21 11:36:23 -08:00
Julien Boeuf 68ad53edf3 Fixing indent. 2015-01-20 22:37:03 -08:00
Julien Boeuf 8fbcc4391e Changing the SSL (Server) Credentials API.
- Changed the unsigned char * + size to NULL terminated strings which
  makes sense for the PEM format. I may change TSI later (but the impact
  will hopefully be much more limited).
- Added a way to pass multiple key/cert pairs to servers which is needed
  when hosting more than one domain.
- Removed the C++ SSL credentials tests as we are going to have an
  option to not specify the roots which will then be derived from the
  environment (well-known platform dependent locations and/or
  environment variable).
- Fixed the php build which is the only one added in the run_test.py.
  This change will certainly break node, python and ruby.
2015-01-20 22:18:15 -08:00
Craig Tiller 5188535a26 Merge branch 'new_invoke_api' of github.com:google/grpc into update-api 2015-01-16 15:24:17 -08:00
Craig Tiller 4ffdcd56ce Add an optional server shutdown event.
Allows servers to expedite shutdown once all in-progress calls are
completed. We may want to eventually remove grpc_server_shutdown in
preference to this.
2015-01-16 11:34:55 -08:00
Craig Tiller c8c8bfa403 Merge branch 'new_invoke_api' of github.com:google/grpc into update
Conflicts:
	src/core/surface/call.c
	test/core/end2end/tests/thread_stress.c
	tools/run_tests/run_tests.py
2015-01-15 22:57:02 -08:00
Craig Tiller 32946d37e0 () --> (void) 2015-01-15 11:37:30 -08:00
Craig Tiller 4f20042ce1 Remove grpc_call_accept 2015-01-15 10:17:45 -08:00
Craig Tiller 808632ed4b Remove grpc_call_start_invoke 2015-01-14 16:17:21 -08:00
Craig Tiller 09b637538f clang-format 2015-01-14 13:02:09 -08:00
Craig Tiller 6046dc35ef clang-format 2015-01-14 12:55:45 -08:00
Craig Tiller d248c24546 Update C++ code to set status via the C api.
This prevents mismatches from breaking tests.
2015-01-14 12:53:38 -08:00
Craig Tiller 2ba0dacbde Update C++ code to set status via the C api.
This prevents mismatches from breaking tests.
2015-01-14 11:49:12 -08:00
Craig Tiller 6d43445a1a Merge github.com:google/grpc into api 2015-01-14 11:19:09 -08:00
Craig Tiller dd330d6d68 Merge pull request #24 from nicolasnoble/win32
Various win32 fixes.
2015-01-13 21:13:44 -08:00
Nicolas "Pixel" Noble 80d68c09c4 Fixing test_config.c
Now all the gpr tests build and run under win32.
2015-01-13 20:14:43 -08:00
Nicolas "Pixel" Noble 27be1a2d3c Removing a few more traces of libevent. 2015-01-14 04:55:57 +01:00
Craig Tiller 40fc7a6632 clang-format codebase 2015-01-13 16:11:58 -08:00
Craig Tiller 375605b65f Merge github.com:google/grpc into api 2015-01-13 16:11:30 -08:00
Craig Tiller 80fa15c151 Moving prototype from Google to GitHub
I'd started some prototyping work on this change before the move to
GitHub; this change restores things.
2015-01-13 16:10:49 -08:00
Craig Tiller b5dcec5a2e clang-format codebase 2015-01-13 11:13:42 -08:00
jboeuf 6ad120e435 Moving the google-internal security code in their own files.
Checked that the opensource version still builds.

Just addressing core for now. We will do c++ later.
	Change on 2015/01/12 by jboeuf <jboeuf@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83804014
2015-01-12 17:36:57 -08:00
ctiller 570d1f4425 Return bound port number from grpc_server_add_http2_port.
Allows tests to bind to port 0 and still have clients connect to them.
	Change on 2015/01/12 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83800669
2015-01-12 17:36:57 -08:00
yangg 1b151096d1 Add impl subdirectory under public and move headers that need to be installed
to it.
	Change on 2015/01/09 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83640373
2015-01-12 11:22:02 -08:00
ctiller 0cd69562fd Allow logging mechanism to be overridden by applications.
This necessitated the removal of gpr_vlog to keep a clean interface.
	Change on 2015/01/09 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83634996
2015-01-12 11:22:02 -08:00
ctiller 033afb3879 Fix for the Windows build
Change on 2015/01/09 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83634893
2015-01-12 11:22:02 -08:00
yangg 4105e2b86c Add ServiceAccount Credentials wrapping and handle credentials creation
failure.
	Change on 2015/01/09 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83634736
2015-01-12 11:22:01 -08:00
hongyu 24200d3cbc C implementation of Census trace store and stats store for grpc C lib.
Change on 2015/01/08 by hongyu <hongyu@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83556470
2015-01-09 17:52:43 -08:00
ctiller 58393c20bc Remove libevent.
Fixed any exposed bugs across the stack.

Add a poll() based implementation. Heavily leverages pollset infrastructure to allow small polls to be the norm. Exposes a mechanism to plug in epoll/kqueue for platforms where we have them.

Simplify iomgr callbacks to return one bit of success or failure (instead of the multi valued result that was mostly unused previously). This will ease the burden on new implementations, and the previous system provided no real value anyway.

Removed timeouts on endpoint read/write routines. This simplifies porting burden by providing a more orthogonal interface, and the functionality can always be replicated when desired by using an alarm combined with endpoint_shutdown. I'm fairly certain we ended up with this interface because it was convenient to do from libevent.

Things that need attention still:
- adding an fd to a pollset is O(n^2) - but this is probably ok given that we'll not
use this for multipolling once platform specific implementations are added.
- we rely on the backup poller too often - especially for SSL handshakes and for client
connection establishment we should have a better mechanism ([] []
- Linux needs to use epoll for multiple fds, FreeBSD variants (including
Darwin) need to use kqueue. ([] []
- Linux needs to use eventfd for poll kicking. ([]
	Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83461069
2015-01-09 17:27:32 -08:00
ctiller e4b409364e Add a --forever flag, to continuously run tests as things change.
Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83451760
2015-01-09 17:23:18 -08:00
ctiller 1a277ecd93 Remove libevent.
Fixed any exposed bugs across the stack.

Add a poll() based implementation. Heavily leverages pollset infrastructure to allow small polls to be the norm. Exposes a mechanism to plug in epoll/kqueue for platforms where we have them.

Simplify iomgr callbacks to return one bit of success or failure (instead of the multi valued result that was mostly unused previously). This will ease the burden on new implementations, and the previous system provided no real value anyway.

Removed timeouts on endpoint read/write routines. This simplifies porting burden by providing a more orthogonal interface, and the functionality can always be replicated when desired by using an alarm combined with endpoint_shutdown. I'm fairly certain we ended up with this interface because it was convenient to do from libevent.

Things that need attention still:
- adding an fd to a pollset is O(n^2) - but this is probably ok given that we'll not
use this for multipolling once platform specific implementations are added.
- we rely on the backup poller too often - especially for SSL handshakes and for client
connection establishment we should have a better mechanism ([] []
- Linux needs to use epoll for multiple fds, FreeBSD variants (including
Darwin) need to use kqueue. ([] []
- Linux needs to use eventfd for poll kicking. ([]
	Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83461069
2015-01-08 13:01:56 -08:00
yangg ed5e7e006b Add deadline API on server side.
Change on 2015/01/06 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83351442
2015-01-06 17:45:46 -08:00
ctiller d94ad10cf1 Provide a port of cpu related code to posix, and linux.
Properly set this up in our build environment.
	Change on 2014/12/23 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82725899
2014-12-29 17:26:55 -08:00
yangg 7cebec7ccd Use overriden host name when creating a call.
Change on 2014/12/22 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82672321
2014-12-29 17:13:16 -08:00
ctiller 3bf466fb6c Port [] alarm management to GRPC.
This change implements a platform independent alarm manager in alarm.c.
It's integrated with iomgr, and some tests are cleaned up.

The alarm implementation itself is a fairly direct port of LazyAlarmList from eventmanager.
SpinLock has been replaced for now with gpr_mu, and other atomic operations have been dropped (again, for now).
A majority of tests have been ported.
	Change on 2014/12/19 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82551363
2014-12-29 17:05:35 -08:00
yangg 59dfc90f57 Client side implementation of creating channel with credentials.
The old test_ssl_channel related code is deleted and the new create channel
call is used for interop tests.
	Change on 2014/12/19 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82540921
2014-12-29 16:59:06 -08:00
yangg a4b6f5df94 Add ServerContext. It is currently empty and deadline and metadata will come to
it in subsequent cl's.
	Change on 2014/12/17 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82372934
2014-12-19 13:02:04 -08:00
jboeuf ab4f91458b Adding JWT generation and signing code for service accounts credentials.
Change on 2014/12/16 by jboeuf <jboeuf@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82279249
2014-12-16 17:26:10 -08:00
yangg fb3aa26c0e Fix comments regarding call_accept to reflect current API.
Change on 2014/12/16 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82273000
2014-12-16 17:22:43 -08:00
ctiller 2845cade4c Trailing metadata support.
Actually exposing it from the C API.
Also removing grpc_status, since it's mostly useless.
	Change on 2014/12/15 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82180546
2014-12-16 16:57:49 -08:00
ctiller 5e04b1376d Add a test for useful.h.
Additionally add rotl, rotr which will be needed to implement some hashing
functions shortly.
	Change on 2014/12/15 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82149559
2014-12-15 14:32:14 -08:00
jboeuf befd26501a Adding base utils for JWT service account workflow. OpenSSL base64 decoding is
a disaster and does not support url_safe which we need for the JWT.
	Change on 2014/12/12 by jboeuf <jboeuf@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82020601
2014-12-12 16:36:06 -08:00
nnoble 8a67b5c281 Tweaking log calls a bit.
-) Introducing gpr_vlog so to spare a few vsprintf later (at least one for now)
-) Renaming statistics/log.* to statistics/census_log.* to avoid collisions.
	Change on 2014/12/12 by nnoble <nnoble@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81995756
2014-12-12 16:20:22 -08:00