ssize_t oe_recvmsg(int sockfd, struct oe_msghdr* buf, int flags)
{
    ssize_t ret = -1;
    oe_fd_t* sock;

    if (!(sock = oe_fdtable_get(sockfd, OE_FD_TYPE_SOCKET)))
        OE_RAISE_ERRNO(oe_errno);

    ret = sock->ops.socket.recvmsg(sock, buf, flags);

done:
    return ret;
}
ssize_t oe_recvmsg(int sockfd, struct oe_msghdr* buf, int flags)
{
    ssize_t ret = -1;
    oe_fd_t* sock;

    if (!(sock = oe_fdtable_get(sockfd, OE_FD_TYPE_SOCKET)))
        OE_RAISE_ERRNO(oe_errno);

    ret = sock->ops.socket.recvmsg(sock, buf, flags);

done:
    return ret;
}