示例#1
0
        internal stuConnectionProperties ConnectionProperties(Guid ConnGuid)
        {
            stuConnectionProperties properties = null;

            try {
                SessionObject connection = GetConnection(ConnGuid);
                if (connection != null)
                {
                    properties = new stuConnectionProperties(connection.ConnectedOn,
                                                             ((IPEndPoint)connection.mSocket.RemoteEndPoint).Address.
                                                             ToString(),
                                                             ((IPEndPoint)connection.mSocket.RemoteEndPoint).Port);
                }
                return(properties);
            } catch {
                return(properties);
            }
        }
示例#2
0
 internal stuConnectionProperties ConnectionProperties(Guid ConnGuid) {
   stuConnectionProperties properties = null;
   try {
     SessionObject connection = GetConnection(ConnGuid);
     if (connection != null)
       properties = new stuConnectionProperties(connection.ConnectedOn,
                                                ((IPEndPoint) connection.mSocket.RemoteEndPoint).Address.
                                                  ToString(),
                                                ((IPEndPoint) connection.mSocket.RemoteEndPoint).Port);
     return properties;
   } catch {
     return properties;
   }
 }