MCPcopy Create free account
hub / github.com/canonical/multipass / make_msg_handler

Method make_msg_handler

tests/test_sftpserver.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 auto make_msg_handler()
68 {
69 auto msg_handler = [this](auto...) -> sftp_client_message {
70 if (messages.empty())
71 return nullptr;
72 auto msg = messages.front();
73 messages.pop();
74 return msg;
75 };
76 return msg_handler;
77 }
78
79 auto make_reply_status(sftp_client_message expected_msg, uint32_t expected_status, int& num_calls)
80 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected