Пример #1
0
    private void Awake()
    {
        _logList    = new Queue <string>();
        _connection = new UDPThreaded();
        _connection.StartConnection(sendIp, sendPort, receivePort);

        hasConnection = false;
        postRequest   = false;
    }
Пример #2
0
    void Start()
    {
        string sendIp      = "127.0.0.1";
        int    sendPort    = 9200;
        int    receivePort = 10001;

        connection = new UDPThreaded();
        connection.StartConnection(sendIp, sendPort, receivePort);
    }