low_level_net.h

Go to the documentation of this file.
00001 #ifndef LOW_LEVEL_NET_H
00002 #define LOW_LEVEL_NET_H
00003 
00004 #include <sys/types.h>
00005 #include <sys/socket.h>
00006 #include <netdb.h>
00007 #include <arpa/inet.h>
00008 #include <errno.h>
00009 
00014 
00015 struct buffer_handle {
00016   int current_size;
00017   void *pData;
00018 };
00019 
00020 
00021 #ifdef __cplusplus
00022 extern "C"  {
00023 #endif
00024   
00029   struct buffer_handle initialize_buffer();
00034   void destroy_handle(struct buffer_handle);
00040   void update_buffer_size(struct buffer_handle* bh, int new_size);
00046   void* read_wire_message(struct buffer_handle *bh, int fd);
00054   int write_wire_message(int fd, const void* buf, int nLength);
00055   
00056 #ifdef __cplusplus
00057 }
00058 #endif
00059 
00060 #endif

Generated on Wed Dec 15 10:46:15 2010 for Hazy_System by  doxygen 1.4.7