From 93da0bb27ee2f1698f018edd603bdf129a7f51e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9C=B0=E5=B9=B3=E7=BA=BF?= <22250530@qq.com> Date: Wed, 16 Sep 2015 11:04:42 +0800 Subject: [PATCH] --- .../wentch/redkale/net/icep/IcepServer.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/com/wentch/redkale/net/icep/IcepServer.java b/src/com/wentch/redkale/net/icep/IcepServer.java index fb51e39e1..4b69fb0fc 100644 --- a/src/com/wentch/redkale/net/icep/IcepServer.java +++ b/src/com/wentch/redkale/net/icep/IcepServer.java @@ -7,10 +7,8 @@ package com.wentch.redkale.net.icep; import com.wentch.redkale.net.*; import com.wentch.redkale.util.*; -import com.wentch.redkale.util.AnyValue.DefaultAnyValue; import com.wentch.redkale.watch.*; import java.nio.*; -import java.util.concurrent.*; import java.util.concurrent.atomic.*; /** @@ -23,23 +21,6 @@ public final class IcepServer extends Server { this(System.currentTimeMillis(), null); } - /** - "content":"{\"cmd\":\"icecandidate\",\"candidate\":{\"candidate\":\"candidate:3791502225 1 tcp 1518214911 10.28.2.207 0 typ host tcptype active generation 0\",\"sdpMid\":\"video\",\"sdpMLineIndex\":1}}" - @param args - @throws Exception - */ - public static void main(String[] args) throws Exception { - DefaultAnyValue conf = new DefaultAnyValue(); - conf.addValue("host", "10.28.2.207"); - conf.addValue("port", "3478"); - final CountDownLatch cdl = new CountDownLatch(1); - final IcepServer server = new IcepServer(); - server.init(conf); - server.addIcepServlet(new BindingIcepServlet(), null); - server.start(); - cdl.await(); - } - public IcepServer(long serverStartTime, final WatchFactory watch) { super(serverStartTime, "UDP", new IcepPrepareServlet(), watch); }