Fast implementation of a port forward in Java

前端 未结 4 1931
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 16:36

I have build a simple application that opens a ServerSocket, and on connection, it connects itself to another server socket on a remote machine. To implement port forwarding

4条回答
  •  庸人自扰
    2020-12-05 17:30

    If your code isn't performant, maybe your buffers aren't large enough.

    Too small buffers mean that more request will be done and less performances.


    On the same topic :

    • How do you determine the ideal buffer size when using FileInputStream?

提交回复
热议问题