.net - How to skip the subsequent byte[] received from socket using c# -


I am using the function under a thread to get the byte [] socket through the socket. Since there are two network adapters in my machine, it is receiving the [byte] twice, I want to get the next byte [].

What should I do to get it?

  Public Zero Recipient () {strMultpileBatchString = ""; String mcastGroup = ReceiverIP; String port = receiver port; // Announce Socket Object Socket S = New Socket (Address Family.Inter Network, SocketType.Dgram, ProtocolType.Udp); // Start the end point of the receiver socket. IPPpoint IEPP = New IPPpoint (IPadation. Anyone, Intel Purse (Port)); S.SetSocketOption (SocketOptionLevel.Udp, SocketOptionName.NoDelay, 1); S.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, 1); S.Bind (ipep); S.SetSocketOption (SocketOptionLevel.IP, SocketOptionName.MulticastTimeToLive, 0); IPADress IP = IP Address Perca (Emacs group); S.SetSocketOption (SocketOptionLevel.IP, SocketOptionName.AddMembership, New Multicast Option (IP)); While (true) {byte [b] new byte [bytes]; }}  

  IPEndPoint IEPP = new ipadpoint (ipadation.nei, int. Pars (port));  

I think this problem is the cause of IPAddress. Try specifying specific IP (one of two network cards),

to

"Before binding, you must first create a local IPPpoint, If you do not have a local address assigned, you can create an IPEndPoint using IPAddress. :: Any address parameter, and the underlying service provider will provide the most suitable network address. Your Multiple Network Interface "


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -