This topic is now archived and is closed to further replies.


sockaddr to sockaddr_in

Recommended Posts

SOCKADDR *addr = (SOCKADDR *)addr_in;

Normally, you never need to do this, because you would think of SOCKADD_IN as a sub-class of SOCKADDR. Since SOCKADDR is a network address, and SOCKADDR_IN is a network address for the TCP/IP protocol.

War Worlds - A 3D Real-Time Strategy game in development.

Share this post

Link to post
Share on other sites