libmemif: Connection request APIs
Add APIs that allow changing reconnect timer and request connection.
First connection request is automatically sent once slave interface is created.
Change-Id: Ie3558b7b94a780b046755f7f0ac6c3dcf07633e4
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
diff --git a/extras/libmemif/src/socket.c b/extras/libmemif/src/socket.c
index e1c3bd4..495cef9 100644
--- a/extras/libmemif/src/socket.c
+++ b/extras/libmemif/src/socket.c
@@ -681,7 +681,6 @@
DBG ("recvmsg fd %d", ifd);
size = recvmsg (ifd, &mh, 0);
- DBG ("done");
if (size != sizeof (memif_msg_t))
{
if (size == 0)
@@ -903,8 +902,8 @@
memif_read_ready (int fd)
{
int err;
- DBG ("call recv");
+
err = memif_msg_receive (fd);
- DBG ("recv finished");
+
return err;
}