1
0
Fork 0

Rewrite of the ipx client code by h-a-l-9000 (Should support more games). Modified it a bit so ipx support can be runtime enabled/disabled.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2254
This commit is contained in:
Peter Veenstra 2005-07-30 10:02:39 +00:00
parent b4fb1af8a2
commit 5a46ec0241
3 changed files with 502 additions and 369 deletions

File diff suppressed because it is too large Load diff

View file

@ -16,6 +16,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: ipxserver.cpp,v 1.5 2005-07-30 10:02:39 qbix79 Exp $ */
#include "dosbox.h"
#if C_IPX
@ -85,7 +87,7 @@ static void sendIPXPacket(Bit8u *buffer, Bit16s bufSize) {
if(desthost == 0xffffffff) {
// Broadcast
for(i=0;i<SOCKETTABLESIZE;i++) {
if((connBuffer[i].connected) /* && (ipconn[i].host != srchost) */) {
if(connBuffer[i].connected && (ipconn[i].host != srchost) ) {
outPacket.address = ipconn[i];
result = SDLNet_UDP_Send(ipxServerSocket,-1,&outPacket);
if(result == 0) {
@ -171,8 +173,6 @@ static void IPX_ServerLoop() {
// Check to see if echo packet
if(SDLNet_Read16(tmpHeader->dest.socket) == 0x2) {
// Null destination node means its a server registration packet
if(tmpHeader->dest.addr.byIP.host == 0x0) {
UnpackIP(tmpHeader->src.addr.byIP, &tmpAddr);
@ -197,8 +197,6 @@ static void IPX_ServerLoop() {
return;
}
}
}
}