This commit is contained in:
地平线
2015-09-16 11:04:42 +08:00
parent c9f03af544
commit 93da0bb27e

View File

@@ -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);
}