ソケット名前空間を使用して 2 つのシステム間の接続を確立しました。メッセージを送受信できるようになりました。ヘッダー情報 (送信者アドレス、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;