Lines Matching defs:handle

154 Status<FileReference> Message::PushFileHandle(const LocalHandle& handle) {
157 return svc->endpoint()->PushFileHandle(this, handle);
163 Status<FileReference> Message::PushFileHandle(const BorrowedHandle& handle) {
166 return svc->endpoint()->PushFileHandle(this, handle);
172 Status<FileReference> Message::PushFileHandle(const RemoteHandle& handle) {
175 return svc->endpoint()->PushFileHandle(this, handle);
182 const LocalChannelHandle& handle) {
185 return svc->endpoint()->PushChannelHandle(this, handle);
192 const BorrowedChannelHandle& handle) {
195 return svc->endpoint()->PushChannelHandle(this, handle);
202 const RemoteChannelHandle& handle) {
205 return svc->endpoint()->PushChannelHandle(this, handle);
211 bool Message::GetFileHandle(FileReference ref, LocalHandle* handle) {
218 *handle = svc->endpoint()->GetFileHandle(this, ref);
219 if (!handle->IsValid())
222 *handle = LocalHandle{ref};
228 LocalChannelHandle* handle) {
235 *handle = svc->endpoint()->GetChannelHandle(this, ref);
236 if (!handle->valid())
239 *handle = LocalChannelHandle{nullptr, ref};
281 Status<void> Message::Reply(const LocalHandle& handle) {
287 if (handle)
288 ret = svc->endpoint()->MessageReplyFd(this, handle.Get());
290 ret = svc->endpoint()->MessageReply(this, handle.Get());
299 Status<void> Message::Reply(const BorrowedHandle& handle) {
305 if (handle)
306 ret = svc->endpoint()->MessageReplyFd(this, handle.Get());
308 ret = svc->endpoint()->MessageReply(this, handle.Get());
317 Status<void> Message::Reply(const RemoteHandle& handle) {
323 if (handle)
324 ret = svc->endpoint()->MessageReply(this, handle.Get());
326 ret = svc->endpoint()->MessageReply(this, handle.Get());
335 Status<void> Message::Reply(const LocalChannelHandle& handle) {
338 const auto ret = svc->endpoint()->MessageReplyChannelHandle(this, handle);
346 Status<void> Message::Reply(const BorrowedChannelHandle& handle) {
349 const auto ret = svc->endpoint()->MessageReplyChannelHandle(this, handle);
357 Status<void> Message::Reply(const RemoteChannelHandle& handle) {
360 const auto ret = svc->endpoint()->MessageReplyChannelHandle(this, handle);