This commit is contained in:
Redkale
2018-05-21 12:04:15 +08:00
parent f440b2d639
commit 4494683db2

View File

@@ -85,7 +85,7 @@ public abstract class ProtocolServer {
//---------------------------------------------------------------------
public static ProtocolServer create(String protocol, Context context) {
if ("TCP".equalsIgnoreCase(protocol)) return new ProtocolNIOTCPServer(context);
if ("TCP".equalsIgnoreCase(protocol)) return new ProtocolAIOTCPServer(context);
if ("UDP".equalsIgnoreCase(protocol)) return new ProtocolBIOUDPServer(context);
throw new RuntimeException("ProtocolServer not support protocol " + protocol);
}