コード例 #1
0
ファイル: TrackServer.java プロジェクト: jurnet/geoflotte
 public static void configInit() {
   DCServerConfig dcs = Main.getServerConfig();
   if (dcs != null) {
     TrackServer.setTcpIdleTimeout(dcs.getTcpIdleTimeoutMS(Constants.TIMEOUT_TCP_IDLE));
     TrackServer.setTcpPacketTimeout(dcs.getTcpPacketTimeoutMS(Constants.TIMEOUT_TCP_PACKET));
     TrackServer.setTcpSessionTimeout(dcs.getTcpSessionTimeoutMS(Constants.TIMEOUT_TCP_SESSION));
     TrackServer.setUdpIdleTimeout(dcs.getUdpIdleTimeoutMS(Constants.TIMEOUT_UDP_IDLE));
     TrackServer.setUdpPacketTimeout(dcs.getUdpPacketTimeoutMS(Constants.TIMEOUT_UDP_PACKET));
     TrackServer.setUdpSessionTimeout(dcs.getUdpSessionTimeoutMS(Constants.TIMEOUT_UDP_SESSION));
   }
 }