Home Information Classes Download Usage Mail List Requirements Links FAQ Tutorial
00001 #ifndef STK_TCPCLIENT_H 00002 #define STK_TCPCLIENT_H 00003 00004 #include "Socket.h" 00005 00006 namespace stk { 00007 00008 /***************************************************/ 00031 /***************************************************/ 00032 00033 class TcpClient : public Socket 00034 { 00035 public: 00037 00040 TcpClient( int port, std::string hostname = "localhost" ); 00041 00043 ~TcpClient(); 00044 00046 00051 int connect( int port, std::string hostname = "localhost" ); 00052 00054 int writeBuffer(const void *buffer, long bufferSize, int flags = 0); 00055 00057 int readBuffer(void *buffer, long bufferSize, int flags = 0); 00058 00059 protected: 00060 00061 }; 00062 00063 } // stk namespace 00064 00065 #endif
The Synthesis ToolKit in C++ (STK) |
©1995-2010 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |