English 中文(简体)
我怎么能知道,Tcp Socket在C#中发出的信息没有客户的答复? [闭门]
原标题:How can I know if the message has been sent by Tcp Socket in C# without client reply? [closed]

要求制定法典的问题必须 尽可能少地理解正在解决的问题。 包括尝试性解决办法,为什么他们做t工作,以及expected 结果。 另见:。 排出问题清单

Closed 9 years ago.

我怎么能知道,Tcp Socket在C#中发出的信息没有客户的答复?

最佳回答

如果您使用TCP Socket的Send方法寄出,TCP应确保所有用药都交付给接收人。 如果无法交付批量,<代码><>Send方法将出现例外。

然而,请注意,在寄出之前,单凭单可缓冲某些 by,即使TCP保证提货,但当<条码>后方法返回时,可能尚未发出。

还指出,如果项目仅指<条码>接收/代码>方法,则不能确定是否中断了TCP的连接。 您必须及时发送一些数据,以便检查与结核病有关的连接是否仍在运作。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...