public SocketClientSyncSocketService(SocketClientSync client)
 {
     FSocketClient = client;
 }
Exemplo n.º 2
0
        private void frmClient_Load(object sender, EventArgs e)
        {
            txtDelimiter.Text = Encoding.ASCII.GetString(new byte[] { 0xFF, 0x00, 0xFE, 0x01, 0xFD, 0x02 });

            cboCompression.SelectedIndex = 0;
            cboDelimiter.SelectedIndex = 0;
            cboEncrypt.SelectedIndex = 0;
            cboProxyType.SelectedIndex = -1;

            client = new SocketClientSync(null);

            client.SocketBufferSize = 1024;
            client.MessageBufferSize = 2048;

            client.OnSymmetricAuthenticate += new OnSymmetricAuthenticateEvent(client_OnSymmetricAuthenticate);
            client.OnSSLClientAuthenticate += new OnSSLClientAuthenticateEvent(client_OnSSLClientAuthenticate);
            client.OnDisconnected += new OnDisconnectEvent(client_OnDisconnected);
        }
Exemplo n.º 3
0
 private void frmClient_Load(object sender, EventArgs e)
 {
     client = new SocketClientSync(null);
     client.OnSymmetricAuthenticate += new OnSymmetricAuthenticateEvent(client_OnSymmetricAuthenticate);
 }