Skip to content

每次recv都能接收到完整的数据包吗? #151

Description

@killghost

我发送了一个结构体,数据大小不固定,如何确保每次recv都能收到完整的数据包?

ipc::buff_t recv = receiver->recv(1000);
if (recv.empty())
{
std::cout << "recv timeout, exit..." << std::endl;
exit(-1);
}

还是说cpp-ipc 本省就能确保数据是完整的?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions