Skip to content

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

@killghost

Description

@killghost

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

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

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

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