WriteString() публичный Метод

public WriteString ( string v ) : void
v string
Результат void
Пример #1
0
    void Disconnected(DisconnectType dis, string msg)
    {
        Close();
        string protocal = dis == DisconnectType.System ?
                          SocketStatusCMD.Exception : SocketStatusCMD.Disconnect;

        NetBuffer buffer = new NetBuffer();

        buffer.WriteString(protocal);
        SocketClientManager.AddEvent(protocal, buffer);
        DebugConsole.LogError("Disconnected :>" + msg + " DisconnectType:>" + dis);
    }
Пример #2
0
    void Disconnected(DisconnectType dis, string msg)
    {
        Close();
        string protocal = dis == DisconnectType.System ?
        SocketStatusCMD.Exception : SocketStatusCMD.Disconnect;

        NetBuffer buffer = new NetBuffer();
        buffer.WriteString(protocal);
        SocketClientManager.AddEvent(protocal, buffer);
        DebugConsole.LogError("Disconnected :>" + msg + " DisconnectType:>" + dis);
    }