Re: One socket two protocols
Quote:
Originally posted by mikescham
Anyone know of a way to get one socket to send on one protocol, for instance UDP, and receive on another protocol like ICMP.
If that's not possible then how about a way to use two sockets with different protocol types that share the same localendpoint???
You can't mix protocols on a single socket. I beliebe that it is possible to have two sockets listen on two sockets on the same local end point though. Not entirely positive.
Either way you shouldn't have a problem mixing and matching ICMP and UDP. UDP and ICMP can never have the same local end point. UDP end point is defined by an IP address and a port. ICMP just goes to a host.