public GServerBase(NetProtocol protocol, GSocketArgs args) { if (protocol == null) { protocol = new NetProtocol(); } this.protocol = protocol; this.socketArgs = args; Init(); }
public GClientBase(NetProtocol protocol, GSocketArgs args) { if (protocol == null) { protocol = new NetProtocol(); } this.protocol = protocol; this.socketArgs = args; header = new byte[protocol.HeaderSize]; }