コード例 #1
0
 public GlobleSetting()
 {
     reader         = new ParamManager("setting.xml");
     PingTimeout    = int.Parse(reader.GetNodeText("PingTimeout"));
     ProcessLimit   = int.Parse(reader.GetNodeText("ProcessLimit"));
     RequestTimeout = int.Parse(reader.GetNodeText("RequestTimeout"));
     BufferSize     = int.Parse(reader.GetNodeText("BufferSize"));
     TcpPort        = int.Parse(reader.GetNodeText("TcpPort"));
     UdpPort        = int.Parse(reader.GetNodeText("UdpPort"));
     ClientPort     = int.Parse(reader.GetNodeText("ClientPort"));
     Adapter        = reader.GetNodeText("Adapter");
     PlayerID       = reader.GetNodeText("PlayerID");
     serverMode     = reader.GetNodeText("ServerMode");
     dataMode       = reader.GetNodeText("DataMode");
     LastAddress    = reader.GetNodeText("LastAddress");
     syncMode       = reader.GetNodeText("SyncMode");
     SendTimeout    = int.Parse(reader.GetNodeText("SendTimeout"));
 }