MySocket.cpp

00001 #include "StdAfx.h"
00002 #include ".\mysocket.h"
00003 
00004 MySocket::MySocket(WvStream *_clone) :
00005     WvStreamClone(_clone)
00006 {
00007     uses_continue_select = true;
00008 }
00009 
00010 void MySocket::execute()
00011 {
00012     WvStreamClone::execute();
00013 
00014     print("Hello world! What is your name?\n");
00015     WvString name = blocking_getline(-1);
00016     print("Nice to meet you, %s. Any last words?\n", name);
00017     WvString lastwords = blocking_getline(-1);
00018     printf("Goodbye!\n");
00019     close();
00020 }
00021 
00022 MySocket::~MySocket(void)
00023 {
00024 }

Generated on Thu Jan 24 16:50:54 2008 for WvStreams by  doxygen 1.5.4