1
0
Fork 0

MultiPlayer updates for MSVC from Frederic Bouvier

This commit is contained in:
ehofman 2003-03-23 10:08:47 +00:00
parent ef37b45dc7
commit 0fe7c2452c
4 changed files with 18 additions and 12 deletions

View file

@ -38,10 +38,12 @@
#include "mpplayer.hxx"
#include <stdlib.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#ifndef _MSC_VER
# include <netdb.h>
# include <sys/socket.h>
# include <netinet/in.h>
# include <arpa/inet.h>
#endif
#include <plib/netSocket.h>
#include <Main/globals.hxx>
@ -281,7 +283,7 @@ void MPPlayer::FillMsgHdr(T_MsgHdr *MsgHdr, const int iMsgId) {
break;
}
inet_aton(m_PlayerAddress.getHost(), &address);
address.s_addr = inet_addr( m_PlayerAddress.getHost() );
MsgHdr->lReplyAddress = address.s_addr;
MsgHdr->iReplyPort = m_PlayerAddress.getPort();

View file

@ -51,9 +51,11 @@
******************************************************************/
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#ifndef _MSC_VER
# include <sys/socket.h>
# include <netinet/in.h>
# include <arpa/inet.h>
#endif
#include <plib/netSocket.h>
#include <stdlib.h>

View file

@ -31,9 +31,11 @@
******************************************************************/
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#ifndef _MSC_VER
# include <sys/socket.h>
# include <netinet/in.h>
# include <arpa/inet.h>
#endif
#include <plib/netSocket.h>
#include <stdlib.h>

View file

@ -25,7 +25,7 @@
#include STL_STRING
#include <iostream.h>
#include <iostream>
#include <simgear/debug/logstream.hxx>