读取批量数据和处理 [英] Reading bulk data and processing

查看:65
本文介绍了读取批量数据和处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目需要在一个数据包中读取大约1025 K或更多的大量字节数组,我必须处理数据。但是在处理时我得到了更多的数据,所以我错过了一些数据包,如何处理这个请帮助我。

I have an project where i need to read a bulk amount of byte array around 1025 K or more in one packet, i have to process in the data. but while processing i'm getting some more data, so i'm missing some packets, how to handle this please help me.

提前感谢。

问候,

Sanj maansi

Sanj maansi

推荐答案

您需要提供更多信息。

You need to supply a bit more information.

什么是"数据包"?它是TCP数据包吗?它来自哪里:从一个文件,一个串行链接,一个网络?

What is a 'packet'? Is it a TCP packet? Where does it come from: from a file, down a serial link, across a network?

当一个数据包到达时,它做了什么?它在内存中的位置:数组,字符串,结构,写入磁盘?

When a packet arrives what is done with it? Where is it held in memory: an array, string, structure, written to disk?

如果不知道这一点,就不可能说出为什么数据包可能被丢弃以及如何恢复它们。

Without knowing this it's not possible to say why packets might be dropped and how to recover when they are.


这篇关于读取批量数据和处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆