首页 \ 问答 \ 当套接字当前没有收到时,你能错过数据包吗?(Can you miss packets, when socket is currently not receiving?)

当套接字当前没有收到时,你能错过数据包吗?(Can you miss packets, when socket is currently not receiving?)

我收到了正在侦听ICMP/UDP数据包的套接字。 如果套接字收到一个数据包并且这个数据包的处理时间过长( socket.receive()之后的代码),可能会错过跟踪数据包,因为我目前不在socket.receive()部分吗?


I got sockets that are listening to ICMP/UDP packets. If the socket receives a packet and the handling of this packet takes too long (code after socket.receive()), could following packets be missed, since I'm currently not at socket.receive() part?


原文:https://stackoverflow.com/questions/37503433
更新时间:2022-05-05 22:05

最满意答案

如果你想知道哪些字段发生了变化,我认为你最好使用ColumnChanged http://msdn.microsoft.com/en-us/library/system.data.datatable.columnchanged.aspx或ColumnChanging http:// msdn.microsoft.com/en-us/library/system.data.datatable.columnchanging.aspx

在这两种情况下都有一个例子来获得新旧价值。


If you want to know which fields are changed, I think you're better of using ColumnChanged http://msdn.microsoft.com/en-us/library/system.data.datatable.columnchanged.aspx or ColumnChanging http://msdn.microsoft.com/en-us/library/system.data.datatable.columnchanging.aspx.

In both cases there is an example to get the old and new values.

相关问答

更多
  • 你不应该将
    与段落混在一起。 编辑器中的内容应该是干净的,并且通过使其不一致而使其变得混乱。 这可能会在未来引发更多问题。 尝试config.forceEnterMode选项。 默认情况下,CKEditor使用您当前所在的块(为了保持一致)。 使用此选项,您强制它使用输入模式中的块。 You should not mix
    s with paragraphs. The content inside the editor should be clean and by making it inc ...
  • 当parents('.cell')元素parents('.cell')被执行时, this元素指向的元素在第276行本身发生了变化。 它不再指向inner div,而是指向具有类cell的父级列表。 之后你执行fadeOut,它循环遍历父母的集合。 在循环内部, this指的是当前父循环。 The element pointed to by this changes on line 276 itself, when parents('.cell') is executed. It no longer poi ...
  • 复制粘贴到您的Java代码中 public class yourActivity extends FragmentActivity implements View.OnTouchListener { ImageView yourpic; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); yourpic = (ImageView) findViewBy ...
  • 如果你想知道哪些字段发生了变化,我认为你最好使用ColumnChanged http://msdn.microsoft.com/en-us/library/system.data.datatable.columnchanged.aspx或ColumnChanging http:// msdn.microsoft.com/en-us/library/system.data.datatable.columnchanging.aspx 。 在这两种情况下都有一个例子来获得新旧价值。 If you want to ...
  • gdb'x'命令接受斜杠后的打印格式和大小作为选项。 在手册中它说: 每次使用x指定单位大小时,下次使用x时该大小将成为默认单位。 它还说: 对于's'格式,单位大小默认为'b',除非明确给出。 所以发生的事情是,在给出命令x/s ,后续的x命令被解释为字节长度。 因此,它只打印您要检查的内存的第一个字节,恰好是0xff。 尝试使用x/xw而不是x/x打印地址。 The gdb 'x' command accepts the the print format and size as options afte ...
  • Rory McCrossan可能是对的,这是一个错误,但有一个简单的解决方法。 只需将一个像sliderVal这样的变量sliderVal比回调更宽的范围内,并使用它来跟踪滑块的最新值。 当on_change事件触发时,检查滑块值 - $('div.range-slider').attr('data-slider') - 是否与先前保存的值不同。 如果没有,什么都不做; 但如果值不同,则执行您想要的任何操作,并确保将sliderVal更新为新值。 这是一个实现这个概念的jsFiddle 。 您将看到它在浏览 ...
  • 实体已经实现了PropertyChanged事件,因为它们实现了System.ComponentModel.INotifyPropertyChanged 。 如果您想捕获对您的entieis的更改,您可以只订阅它。 另请注意,实体支持以下两个部分方法 - 第二个方法应该为您提供相当于“RowChanging”的功能 - 如果您想要响应类中的更改,可以覆盖它们: protected override void OnPropertyChanged(string property) {} protected o ...
  • 你的描述不是很清楚,因为你不会告诉我们关于你的组件的失败信息和其他一些事情。 所以我只能猜测: 在你调用addComponent的时候,组件this.elememtRef,'child1'不存在,所以它会失败? 也许ComponentA尚未完全加载? 我还假设“组件”是指组件B? Ok I figured it out, The reason I had different objectRefs is that I set a providers:[MainComponent] at the Compone ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)