Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ConnectionInterface.cpp

Go to the documentation of this file.
00001 #include "headers.h"
00002 
00003 ConnectionInterface* 
00004 ConnectionInterface::createConnectionObject(ObjectType type) 
00005 {
00006     if (type == TCP_CONNECTION) {
00007         return new TcpConnection();
00008     }
00009     else if (type == SSL_CONNECTION) {
00010         return new SslConnection();
00011     }
00012     else {
00013         return NULL;
00014     }
00015 } // fn createConnectionObject
00016 
00017 

Generated at Thu Jul 11 13:31:49 2002 for Peekabooty by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001