1 /***************************************************************************
2 protocol.h - Interface for a protocol
4 begin : Sun Mar 12 2006
5 copyright : (C) 2006 by Yannick Lecaillez, Avi Alkalay
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the BSD License (revised). *
14 ***************************************************************************/
16 /***************************************************************************
18 * Class that implements a protocol. *
20 ***************************************************************************/
40 int protocolSendMessage(int fd, const Message *msg);
41 Message *protocolReadMessage(int fd);
43 #endif /* PROTOCOL_H */