Back to index

avfs  1.0.1
Functions
client.h File Reference
#include "send.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int __av_send_message (struct avfs_out_message *out, struct avfs_in_message *in, int keepsock)

Function Documentation

int __av_send_message ( struct avfs_out_message out,
struct avfs_in_message in,
int  keepsock 
)

Definition at line 195 of file client.c.

{
    int res;
    int sock;

    sock = socket(AF_UNIX, SOCK_STREAM, 0);
    if(sock == -1)
        return -1;

    res = sock_send_message(sock, out, in);
    if(res == -1)
        return -1;

    if(keepsock)
        return sock;
    else {
        close(sock);
        return 0;
    }
}

Here is the call graph for this function:

Here is the caller graph for this function: