Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   Tutorial


TcpClient.h

00001 /***************************************************/
00024 /***************************************************/
00025 
00026 #ifndef STK_TCPCLIENT_H
00027 #define STK_TCPCLIENT_H
00028 
00029 #include "Socket.h"
00030 
00031 class TcpClient : public Socket
00032 {
00033  public:
00035 
00038   TcpClient( int port, std::string hostname = "localhost" );
00039 
00041   ~TcpClient();
00042 
00044 
00049   int connect( int port, std::string hostname = "localhost" );
00050 
00052   int writeBuffer(const void *buffer, long bufferSize, int flags = 0);
00053 
00055   int readBuffer(void *buffer, long bufferSize, int flags = 0);
00056 
00057  protected:
00058 
00059 };
00060 
00061 #endif // defined(STK_TCPCLIENT_H)

The Synthesis ToolKit in C++ (STK)
©1995-2007 Perry R. Cook and Gary P. Scavone. All Rights Reserved.