Ignore:
Timestamp:
Jul 6, 2010, 8:09:10 AM (14 years ago)
Author:
Sam Habiel
Message:

Support for other encodings besides ASCII. Constructors available in BMXNetLib and and BMXNetConnectInfo.
Comments in several files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/BMXNetConnectInfo.cs

    r815 r822  
    5757        }
    5858
    59                 public BMXNetConnectInfo()
    60                 {
    61                         m_BMXNetLib = new BMXNetLib();
    62 
    63                         //Initialize BMXNetEvent timer
    64                         m_timerEvent = new System.Timers.Timer();
    65                         m_timerEvent.Elapsed+=new ElapsedEventHandler(OnEventTimer);
    66                         m_timerEvent.Interval = 10000;
    67                         m_timerEvent.Enabled = false;
    68                 }
     59        /// <summary>
     60        /// BMXNetConnector With Default Encoding (invokes BMXNetLib)
     61        /// </summary>
     62        public BMXNetConnectInfo() : this("") { }
     63
     64        /// <summary>
     65        /// BMXNetConnector with a specific encoding
     66        /// </summary>
     67        /// <param name="encoding">String representation of encoding (e.g. windows-1256 for arabic).
     68        /// If encoding is not found, we fall back to the default windows encoding. A debug message
     69        /// is printed to that effect.</param>
     70        public BMXNetConnectInfo(string encoding)
     71        {
     72            if (encoding == String.Empty) m_BMXNetLib = new BMXNetLib();
     73            else m_BMXNetLib = new BMXNetLib(encoding);
     74
     75            m_timerEvent = new System.Timers.Timer();
     76            m_timerEvent.Elapsed += new ElapsedEventHandler(OnEventTimer);
     77            m_timerEvent.Interval = 10000;
     78            m_timerEvent.Enabled = false;
     79        }
    6980
    7081                #region BMXNetEvent
Note: See TracChangeset for help on using the changeset viewer.