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