Logo
~Sockets~
~Examples~
~Contact~


TestSocket Class Reference

List of all members.


Public Member Functions

 TestSocket (ISocketHandler &h)
void OnConnect ()
void OnConnectFailed ()
void OnLine (const std::string &line)
void OnDelete ()
void OnResolved (int id, ipaddr_t a, port_t port)

Detailed Description

Definition at line 230 of file sockets_test.cpp.


Constructor & Destructor Documentation

TestSocket::TestSocket ( ISocketHandler &  h  )  [inline]

Definition at line 233 of file sockets_test.cpp.

00233                                       : TcpSocket(h) {
00234                 SetLineProtocol();
00235         }


Member Function Documentation

void TestSocket::OnConnect (  )  [inline]

Definition at line 236 of file sockets_test.cpp.

00236                          {
00237                 printf("TestSocket connected, sending QUIT\n");
00238                 Send( "quit\n" );
00239         }

void TestSocket::OnConnectFailed (  )  [inline]

Definition at line 240 of file sockets_test.cpp.

00240                                {
00241                 printf("TestSocket::OnConnectFailed\n");
00242                 SetCloseAndDelete();
00243         }

void TestSocket::OnLine ( const std::string &  line  )  [inline]

Definition at line 244 of file sockets_test.cpp.

00244                                            {
00245                 printf("TestSocket: %s\n", line.c_str());
00246         }

void TestSocket::OnDelete (  )  [inline]

Definition at line 247 of file sockets_test.cpp.

00247                         {
00248                 printf("TestSocket::OnDelete()\n");
00249         }

void TestSocket::OnResolved ( int  id,
ipaddr_t  a,
port_t  port 
) [inline]

Definition at line 250 of file sockets_test.cpp.

00250                                                        {
00251                 printf("TestSocket::OnResolved():  %d,  %08x:%d\n", id, a, port);
00252                 TcpSocket::OnResolved(id,a,port);
00253         }


The documentation for this class was generated from the following file:
Page, code, and content Copyright (C) 2007 by Anders Hedström
Generated for C++ Sockets by  doxygen 1.4.4