示例#1
0
    public LogEntry(string text, string stackTrace, LogType type)
    {
        m_text       = text;
        m_stackTrace = stackTrace;
        m_type       = type.ToString();

        DateTime timestamp = DateTime.Now;

        m_timestamp = String.Format("{0:u}", timestamp);

        m_ipAddress = Server3Manager.GetLocalIPAddress();
    }
    // Use this for initialization
    void Awake()
    {
        ipAddress = Server3Manager.GetLocalIPAddress();

        server = GetComponent <Server3>();

        Debug.Log("Starting Server: ipaddress = " + ipAddress + ", port = " + port);

        IPEndPoint ipEndpoint = new IPEndPoint(IPAddress.Parse(ipAddress), port);

        server.Construct(maxConnections, bufferSize);
        server.Init();
        server.StartServer(ipEndpoint);
    }