Ejemplo n.º 1
0
    protected void Start()
    {
        _client            = new AsynSocketClient(BUFF_SIZE);
        _client.Received  += OnReceiveMsg;
        _client.Completed += OnComplete;

        _lockObj = new System.Object();
        lock (_lockObj)
        {
            _recvMsgList     = new List <byte[]>();
            _socketEventList = new List <SocketEvent>();
        }
        Log("Client started!");
    }
Ejemplo n.º 2
0
 private void SocketClient_Load(object sender, EventArgs e)
 {
     asynSocketClient = new AsynSocketClient(MessageSwich);
     txb_ip.Text      = asynSocketClient.GetLocalIpv4Adress().ToString();
 }