[英]Netty TCP Socket Overhead
I'm a starter with Netty, and my aim is to send data objects through TCP sockets; 我是Netty的初学者,我的目标是通过TCP套接字发送数据对象。 but I have many number of data objects and I want to send using POJO like shown here .
但是我有许多数据对象,我想用POJO发送, 如这里所示 。
However, the issue is that, I need to convert all my objects to byte arrays and "only send these byte arrays with TCP overhead" over the network. 但是,问题在于,我需要将所有对象都转换为字节数组,并通过网络“仅使用TCP开销发送这些字节数组” 。 Considering this, my question is that is Netty will add overhead to my byte array or just encoded byte arrays + TCP overhead will be sent over Netty TCP sockets?
考虑到这一点,我的问题是Netty将增加开销到我的字节数组还是只是编码的字节数组+ TCP开销将通过Netty TCP套接字发送?
Netty doesn't add any protocol of its own. Netty不会添加任何自己的协议。 It just sends the bytes you send.
它只是发送您发送的字节。
It wouldn't be much use otherwise. 否则,它不会有太大用处。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.