Sleipnir
|
00001 #ifndef SEEKNETWORK_H 00002 #define SEEKNETWORK_H 00003 00004 #include "seekbasic.h" 00005 00006 //additional network include files 00007 #include <sys/socket.h> 00008 #include <sys/types.h> 00009 #include <netinet/in.h> 00010 #include <netdb.h> 00011 #include <arpa/inet.h> 00012 #include <sys/wait.h> 00013 #include <signal.h> 00014 #include <string.h> 00015 00016 namespace Sleipnir { 00017 00059 class CSeekNetwork{ 00060 public: 00071 static int Send(int, const string&); 00072 00083 static int Send(int, const vector<float>&); 00084 00095 static int Send(int, char*, int); 00096 00105 static void Clear(char*, int); 00106 00118 static int Copy(char*, char*, int, int); 00119 00130 static int Receive(int, string&); 00131 00142 static int Receive(int, vector<float>&); 00143 }; 00144 00145 } 00146 #endif