Lines Matching refs:client

16 #include <pdx/client.h>
71 // The test service creates a TestChannel for every client (channel) that
72 // connects. This represents the service-side context for each client.
260 // Test client to send messages to the test service.
269 // Requests the test channel to be set to this client's channel.
275 // Request the test channel to be set to this client's channel using an async
287 // Requests the channel id for this client.
413 // thread, order is important; either the service or the client must be
416 // destruction. If this happens after the dispatcher is stopped the client
454 // Create a client to service.
455 auto client = TestClient::Create(kTestService1);
456 ASSERT_NE(nullptr, client);
459 const int channel_id = client->GetThisChannelId();
463 EXPECT_EQ(-ENOENT, client->GetTestChannelId());
466 EXPECT_EQ(0, client->SetTestChannel());
467 EXPECT_EQ(channel_id, client->GetTestChannelId());
477 auto client = TestClient::Create(kTestService1);
478 ASSERT_NE(nullptr, client);
481 const int channel_id = client->GetThisChannelId();
485 EXPECT_EQ(-ENOENT, client->GetTestChannelId());
488 EXPECT_EQ(0, client->SetTestChannelAsync());
489 EXPECT_EQ(channel_id, client->GetTestChannelId());
492 EXPECT_EQ(0, client->SendAsync(expected_payload.data(), 3));
495 client->GetThisChannelId();
500 0, client->SendAsync(expected_payload.data(), TestClient::kMaxPayload));
501 EXPECT_EQ(-EINVAL, client->SendAsync(expected_payload.data(),
506 EXPECT_EQ(-EINVAL, client->SendAsync(invalid_pointer, sizeof(int)));
521 // Create a client to the second test service.
566 // Create a client to service.
567 auto client = TestClient::Create(kTestService1);
568 ASSERT_NE(nullptr, client);
572 const pid_t process_id1 = client->GetThisProcessId();
578 process_id2 = client->GetThisProcessId();
586 const int euid1 = client->GetThisEffectiveUserId();
589 const int egid1 = client->GetThisEffectiveGroupId();
596 const int euid2 = client->GetThisEffectiveUserId();
599 const int egid2 = client->GetThisEffectiveGroupId();
613 // Create a client to service.
614 auto client = TestClient::Create(kTestService1);
615 ASSERT_NE(nullptr, client);
618 int count = epoll_wait(client->event_fd(), &event, 1, 0);
621 client->SendPollInEvent();
623 count = epoll_wait(client->event_fd(), &event, 1, -1);
634 // Create a client to service.
635 auto client = TestClient::Create(kTestService1);
636 ASSERT_NE(nullptr, client);
639 int count = epoll_wait(client->event_fd(), &event, 1, 0);
642 client->SendPollHupEvent();
644 count = epoll_wait(client->event_fd(), &event, 1, -1);
646 auto event_status = client->GetEventMask(event.events);
657 // Create a client to service.
658 auto client = TestClient::Create(kTestService1);
659 ASSERT_NE(nullptr, client);
664 int sum = client->SendLargeDataReturnSum(data_array);
674 // Create a client to service.
675 auto client = TestClient::Create(kTestService1);
676 ASSERT_NE(nullptr, client);