TCP / IP收到数据问题...... [英] TCP/IP received data questions...
问题描述
hi ...
在我的应用程序中,我使用TCP / IP进行通信。我将从以太网上的许多PC获取数据。我正在使用以下代码来获取数据。
In my application i am communication using TCP/IP. I will get data from many PCs on ethernet. I am using following code to get the data.
我对此有几个问题...
I have few questions on this...
如果数据我如何识别数据收到的是哪个IP地址。我可以在Socket对象中获取该信息吗??我在发送数据后调用'BeginReceive'...如果我必须在不发送任何数据的情况下获取接收数据,该怎么办...?
如果我要接收大数据,我不知道我将在以太网端口上收到的数据的大小...在这种情况下应该是'size'的值...?
how i can identify the data if the data received is from which IP address. Can i get that information in Socket object...?
I am calling 'BeginReceive' after sending data... What i should do if i have to get receive data without sending any data...?
In case i am going to receiv large data, I dont know the size of the data which i will receive on ethernet port... in that case what should be value of 'size'...?
谢谢,我IamHuM
Thanks,
IamHuM
推荐答案
发布您的代码
这篇关于TCP / IP收到数据问题......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!