fix a bug of handling TCP stream

Signed-off-by: Takashiro <takashiro@qq.com>
transfer pointer positions with long integers instead of float numbers. The packet will be smaller

Signed-off-by: Takashiro <takashiro@qq.com>
Call recv() less frequently

Signed-off-by: Takashiro <takashiro@qq.com>