public void Connect() { if (_state != State.Disconnected) { return; } _state = State.Connecting; _connection.Connect("127.0.0.1", 3000); }
public void Connect(string host, int port) { if (state != State.DISCONNECTED) { return; } SetState(State.CONNECTING); packet.Connect(host, port); }
//////////////////////////////////////////////////////////////////////////////// public void Connect(string host, int port) { if (_State != State.DISCONNECTED) { return; } _State = State.CONNECTING; _Packet.Connect(host, port); }