public void Start() { try { mTcp.Listen(); mTcp.onReceive += OnReceive; mTcp.onAccept += OnAccept; if (mUdp != null) { mUdp.Listen(); mUdp.onReceive += OnReceive; } else if (mKcp != null) { mKcp.Listen(); } onStart(); } catch (Exception e) { CatchException(e); } }
public void Start() { try { mTcp.Listen(); mTcp.onAccept += OnAccept; onStart(); } catch (Exception e) { CatchException(e); } }