Beispiel #1
0
        private void CSSConnect(string server, int port)
        {
            bool bRetVal = false;

            try
            {
                _CSS.TcpClient.Connect(server, port);
                bRetVal = true;
            }
            catch (Exception)
            {
            }

            if (bRetVal == true)
            {
                try
                {
                    if (_delegateBlastEnd == null)
                    {
                        _delegateBlastEnd += new CSSObjects.CSS.BlastEndDelegate(CSS_BlastEnd);
                        _CSS.RegisterForBlastEnd(ref _delegateBlastEnd, false);
                    }
                }
                catch (Exception)
                {
                    bRetVal = false;
                }
            }
        }