Back to index

avfs  1.0.1
send.h
Go to the documentation of this file.
00001 /*
00002     AVFS: A Virtual File System Library
00003     Copyright (C) 1998-2001  Miklos Szeredi <miklos@szeredi.hu>
00004 
00005     This program can be distributed either under the terms of the GNU
00006     GPL or under the terms of the GNU LGPL.  See the files COPYING and
00007     COPYING.LIB.
00008 */
00009 
00010 #define MAXSEG 10
00011 
00012 struct avfs_out_message_segment {
00013     unsigned int len;
00014     const void *buf;
00015 };
00016 
00017 struct avfs_out_message {
00018     unsigned int num;
00019     struct avfs_out_message_segment seg[MAXSEG];
00020 };
00021 
00022 struct avfs_in_message_segment {
00023     unsigned int len;
00024     void *buf;
00025 };
00026 
00027 struct avfs_in_message {
00028     unsigned int num;
00029     struct avfs_in_message_segment seg[MAXSEG];
00030 };
00031 
00032 int __av_read_message(int sock, struct avfs_in_message *msg);
00033 int __av_write_message(int sock, struct avfs_out_message *msg);
00034