Removed doomclassic networking functions

This commit is contained in:
Felix Rueegg 2013-10-31 21:44:58 +01:00
parent 513fc0ee8f
commit 7e3e0fd95d
3 changed files with 16 additions and 13 deletions

View file

@ -141,9 +141,9 @@ namespace DoomLib
Globals *globaldata[4];
RecvFunc Recv;
SendFunc Send;
SendRemoteFunc SendRemote;
//RecvFunc Recv;
//SendFunc Send;
//SendRemoteFunc SendRemote;
bool Active = true;
@ -419,12 +419,14 @@ void DoomLib::SetPlayer( int id )
}
}
#if 0
void DoomLib::SetNetworking( RecvFunc rf, SendFunc sf, SendRemoteFunc sendRemote )
{
Recv = rf;
Send = sf;
SendRemote = sendRemote;
}
#endif
int DoomLib::GetPlayer()
{
@ -544,7 +546,7 @@ void DoomLib::SendNetwork() {
if ( !globalNetworking ) {
return;
}
DoomLib::SendRemote();
//DoomLib::SendRemote();
}
void DoomLib::RunSound() {

View file

@ -93,9 +93,9 @@ struct ExpansionData {
namespace DoomLib
{
typedef int ( *RecvFunc)( char* buff, DWORD *numRecv );
typedef int ( *SendFunc)( const char* buff, DWORD size, sockaddr_in *target, int toNode );
typedef int ( *SendRemoteFunc)();
//typedef int ( *RecvFunc)( char* buff, DWORD *numRecv );
//typedef int ( *SendFunc)( const char* buff, DWORD size, sockaddr_in *target, int toNode );
//typedef int ( *SendRemoteFunc)();
void InitGlobals( void *ptr = NULL );
void InitGame( int argc, char ** argv );
@ -108,7 +108,7 @@ namespace DoomLib
void Draw();
void Shutdown();
void SetNetworking( RecvFunc rf, SendFunc sf, SendRemoteFunc sendRemote );
//void SetNetworking( RecvFunc rf, SendFunc sf, SendRemoteFunc sendRemote );
void SetPlayer( int id );
int GetPlayer();
@ -126,9 +126,9 @@ namespace DoomLib
void RunSound();
extern RecvFunc Recv;
extern SendFunc Send;
extern SendRemoteFunc SendRemote;
//extern RecvFunc Recv;
//extern SendFunc Send;
//extern SendRemoteFunc SendRemote;
extern void* (*Z_Malloc)( int size, int tag, void* user );
extern void (*Z_FreeTag)(int lowtag );

View file

@ -84,7 +84,8 @@ int DOOMPORT = 1002; // DHM - Nerve :: On original XBox, ports 1000 - 1255 saved
unsigned long GetServerIP() {
return ::g->sendaddress[::g->doomcom.consoleplayer].sin_addr.s_addr;
//return ::g->sendaddress[::g->doomcom.consoleplayer].sin_addr.s_addr;
return 0;
}
void (*netget) (void);
@ -99,7 +100,7 @@ int UDPsocket (void)
int s;
// allocate a socket
s = socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP);
//s = socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if ( !IsValidSocket( s ) ) {
int err = GetLastSocketError();
I_Error( "can't create socket, error %d", err );