Exemplo n.º 1
0
        close()
        {
            if (socket != null)
            {
                if (trace.enabled(2))
                {
                    trace.write(title + ": closing network connection");
                }

                try { socket.Close(); }
                catch (Exception /* ignore */) { }
                finally
                {
                    socket    = null;
                    ipAddress = null;
                }
            }

            return;
        }         // close