00001
00002
00003
00004
00005
00006
00007
00008 namespace impulse {
00009
00010 class SocketTest : public UnitTest {
00011
00012 public:
00013
00014 void runTests()
00015 {
00016 cout << "Testing Socket..." << endl;
00017 cout << "------------------------------------------------------------" << endl;
00018
00019 Socket socket( "www.sun.com", "http" );
00020 socket.send( "get\r\n" );
00021 cout << socket.receive() << endl;
00022
00023 cout << "------------------------------------------------------------" << endl;
00024 cout << endl;
00025 }
00026
00027 };
00028
00029 }