public UdpDataSink(ServerConfig serverConfig) {
System.out.println("Opening UDP channel for sending");
try {
channel = DatagramChannel.open(StandardProtocolFamily.INET);
channel.connect(new InetSocketAddress(serverConfig.getInetAddress(), serverConfig.getPort()));
} catch (IOException e) {
throw new IllegalStateException("Unable to start UDP channel for sending", e);
}
}
UdpDataSink.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:eborp
作者:
评论列表
文章目录