CrusherDatagramSocat4Test.java 文件源码

java
阅读 15 收藏 0 点赞 0 评论 0

项目:netcrusher-java 作者:
@Before
public void setUp() throws Exception {
    reactor = new NioReactor();

    crusher = DatagramCrusherBuilder.builder()
        .withReactor(reactor)
        .withBindAddress(ADDR_LOOPBACK4, PORT_DIRECT)
        .withConnectAddress(ADDR_LOOPBACK4, PORT_PROXY)
        .withProtocolFamily(StandardProtocolFamily.INET)
        .withCreationListener((addr) -> LOGGER.info("Client is created <{}>", addr))
        .withDeletionListener((addr, byteMeters, packetMeters) -> LOGGER.info("Client is deleted <{}>", addr))
        .buildAndOpen();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号