我已经使用套接字名称空间在两个系统之间建立连接,现在我能够发送和接收消息,现在我想获取有关已接收数据包的信息,例如标头信息(发件人地址,ttl 和 ...)
int sendCount = 1;// Number of times to send the response
int bufferSize = 4096;// Size of the send and receive buffers
IPAddress localAddress = IPAddress.Any;
SocketType sockType;
ProtocolType sockProtocol;
int rc;
Socket clientSocket;
byte[] receiveBuffer, sendBuffer;
Socket serverSocket = null;