Lines Matching refs:Grpc
24 $credentials = Grpc\ChannelCredentials::createSsl(
26 $server_credentials = Grpc\ServerCredentials::createSsl(
30 $this->server = new Grpc\Server();
35 $this->channel = new Grpc\Channel(
62 $deadline = Grpc\Timeval::infFuture();
64 $call = new Grpc\Call($this->channel,
69 $call_credentials = Grpc\CallCredentials::createFromPlugin(
74 Grpc\OP_SEND_INITIAL_METADATA => [],
75 Grpc\OP_SEND_CLOSE_FROM_CLIENT => true,
94 Grpc\OP_SEND_INITIAL_METADATA => [],
95 Grpc\OP_SEND_STATUS_FROM_SERVER => [
97 'code' => Grpc\STATUS_OK,
100 Grpc\OP_RECV_CLOSE_ON_SERVER => true,
108 Grpc\OP_RECV_INITIAL_METADATA => true,
109 Grpc\OP_RECV_STATUS_ON_CLIENT => true,
115 $this->assertSame(Grpc\STATUS_OK, $status->code);
132 $deadline = Grpc\Timeval::infFuture();
134 $call = new Grpc\Call($this->channel,
139 $call_credentials = Grpc\CallCredentials::createFromPlugin(
144 Grpc\OP_SEND_INITIAL_METADATA => [],
145 Grpc\OP_SEND_CLOSE_FROM_CLIENT => true,
146 Grpc\OP_RECV_STATUS_ON_CLIENT => true,
151 $this->assertTrue($event->status->code == Grpc\STATUS_UNAVAILABLE);
164 $deadline = Grpc\Timeval::infFuture();
166 $call = new Grpc\Call($this->channel,
171 $call_credentials = Grpc\CallCredentials::createFromPlugin(
176 Grpc\OP_SEND_INITIAL_METADATA => [],
177 Grpc\OP_SEND_CLOSE_FROM_CLIENT => true,
178 Grpc\OP_RECV_STATUS_ON_CLIENT => true,
183 $this->assertTrue($event->status->code == Grpc\STATUS_UNAVAILABLE);