• Philip Withnall's avatar
    socket: Add vectored I/O support for sending on sockets · 515481e6
    Philip Withnall authored
    Replace the send() API with a send_messages() API, which supports
    sending multiple messages, each with multiple buffers rather than a
    single monolithic buffer.
    This doesn’t break API, as the socket API is not exposed outside
    libnice. It does introduce a new struct: NiceOutputMessage, which is
    analogous to struct mmsghdr and NiceInputMessage.
    This includes updates to the test-bsd test to cover the changed API.
    The existing nice_socket_send() API has been retained as a thin wrapper
    around nice_socket_send_messages(), for convenience only. It’s hoped
    that internal usage of this API will decline to the point where it can
    be removed.
agent.c 128 KB