This commit is contained in:
地平线
2015-07-23 17:10:39 +08:00
parent ab0520e03c
commit 78027b4564

View File

@@ -51,7 +51,7 @@ public class SncpTest {
@Override
public void run() {
try {
SncpServer server = new SncpServer();
SncpServer server = new SncpServer("UDP");
server.addService(new ServiceEntry(SncpTestService.class, new SncpTestService(), null, serviceName));
AnyValue.DefaultAnyValue conf = new AnyValue.DefaultAnyValue();
conf.addValue("host", "0.0.0.0");