2 * Copyright (C) 2013 - Julien Desfossez <jdesfossez@efficios.com>
3 * David Goulet <dgoulet@efficios.com>
4 * 2015 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License, version 2 only, as
8 * published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 51
17 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #include <common/common.h>
25 #include "cmd-generic.h"
27 int cmd_recv(struct lttcomm_sock
*sock
, void *buf
, size_t len
)
34 ret
= sock
->ops
->recvmsg(sock
, buf
, len
, 0);
37 /* Orderly shutdown. Not necessary to print an error. */
38 DBG("Socket %d did an orderly shutdown", sock
->fd
);
40 ERR("Relay didn't receive valid add_stream struct size. "
41 "Expected %zu, got %d", len
, ret
);
This page took 0.031778 seconds and 5 git commands to generate.