IPX Programming
Hello! I'm considering adding IPX support to a game I'm writing, and I don't know how. I'm using winsock. My code (in simplified terms) looks like this: struct sockaddr_ipx addr; sock = socket(PF_IPX, SOCK_DGRAM, NSPROTO_IPX); addr.sa_family = AF_IPX; memset(addr.sa_netnum, 0, 4); memset(addr.sa_nodenum, 0, 6); addr.sa_socket = htons(port); bind(sock, (struct sockaddr *)&addr, sizeof(saddr)); The call to bind fails with WSAEINVAL. I really have no idea what I'm doing, but I have some experience with TCP/UDP sockets. If someone could help me out or point me to some good IPX material, that'd be great. Thanks!
Apparently, IPX networking is not supported on Windows x64 (which I am currently running). I've tried running this code on another system, but it's giving some strange errors unrelated to IPX. "This application has failed to start because the application configuration is incorrect." It probably has to do with the fact that I'm using the VS2005 beta. I'll post again once I get this sorted out.
I wouldn't recommend using IPX in any new games (unless they have to interoperate with DOS stuff).
A lot of users won't have IPX configured - it's not installed by default any more on Windows. Microsoft may ultimately drop support for it - even Novell don't use it any more.
Use UDP/IP, as that is almost the same as IPX and supports the same sort of operations (broadcasts on a LAN) - and has the advantage of being routable over the internet.
Mark
A lot of users won't have IPX configured - it's not installed by default any more on Windows. Microsoft may ultimately drop support for it - even Novell don't use it any more.
Use UDP/IP, as that is almost the same as IPX and supports the same sort of operations (broadcasts on a LAN) - and has the advantage of being routable over the internet.
Mark
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement