1 #include "stg/sgcp_transport.h"
8 using STG::SGCP::TransportProto;
10 TransportProto* TransportProto::create(TransportType transport, const std::string& key)
12 TransportProto* underlying = create(transport);
16 return new CryptoProto(key, underlying);
19 TransportProto* TransportProto::create(TransportType transport)
22 case UNIX: return new UnixProto;
23 case UDP: return new UDPProto;
24 case TCP: return new TCPProto;