Winsock UDP

When writing a UDP server, must I include ws2tcpip.h, it would seem to be since UDP is just another TCP/IP protocol, but I have seem a lot of inexperienced networkers try to separate them
... but I have seem a lot of inexperienced networkers try to separate them
Seperate what?
ws2tcpip is set of definitions for winsock2. It is not compatible with winsock.
* The IP_* macros are also defined in winsock.h, but some values are different there.
* The values defined in winsock.h for 1.1 and used in wsock32.dll are consistent
* with the original values Steve Deering defined in his document "IP Multicast Extensions
* for 4.3BSD UNIX related systems (MULTICAST 1.2 Release)." However, these conflicted with
* the definitions for some IPPROTO_IP level socket options already assigned by BSD,
* so Berkeley changed all the values by adding 7. WinSock2 (ws2_32.dll) uses
* the BSD 4.4 compatible values defined here.
Sorry i am using ws2
Topic archived. No new replies allowed.