8
8
\author Satofumi KAMIMURA
10
$Id: TcpipSocket.h 1414 2009-10-14 23:14:02Z satofumi $
10
$Id: TcpipSocket.h 1817 2010-05-09 09:04:32Z satofumi $
13
13
#include "Connection.h"
25
class TcpipSocket : public Connection
34
\param[in] socket �ʐM�\�P�b�g
36
TcpipSocket(void* socket);
42
\param[in] socket_set �ʐM�\�P�b�g�Ǘ�
43
\param[in] socket �ʐM�\�P�b�g
45
TcpipSocket(SocketSet* socket_set, void* socket = NULL);
49
const char* what(void) const;
51
bool connect(const char* host, long port);
52
void disconnect(void);
53
bool setBaudrate(long baudrate);
54
long baudrate(void) const;
55
bool isConnected(void) const;
56
int send(const char* data, size_t count);
57
int receive(char* data, size_t count, int timeout);
58
size_t size(void) const;
61
void ungetc(const char ch);
64
TcpipSocket(const TcpipSocket& rhs);
65
TcpipSocket& operator = (const TcpipSocket& rhs);
68
const std::auto_ptr<pImpl> pimpl;
24
class TcpipSocket : public Connection
33
\param[in] socket �ʐM�\�P�b�g
35
TcpipSocket(void* socket);
41
\param[in] socket_set �ʐM�\�P�b�g�Ǘ�
42
\param[in] socket �ʐM�\�P�b�g
44
TcpipSocket(SocketSet* socket_set, void* socket = NULL);
48
const char* what(void) const;
50
bool connect(const char* host, long port);
51
void disconnect(void);
52
bool setBaudrate(long baudrate);
53
long baudrate(void) const;
54
bool isConnected(void) const;
55
int send(const char* data, size_t count);
56
int receive(char* data, size_t count, int timeout);
57
size_t size(void) const;
60
void ungetc(const char ch);
63
TcpipSocket(const TcpipSocket& rhs);
64
TcpipSocket& operator = (const TcpipSocket& rhs);
67
const std::auto_ptr<pImpl> pimpl;
72
71
#endif /* !QRK_TCPIP_SOCKET_H */