Files
RP411/MUNGA_L4/L4HOST.cpp
T
CydandClaude Opus 4.8 4abbf8879f Initial import of Red Planet v4.10 Win32 source
Imports the current Win32 source for the pod-racing game 'Red Planet',
built on the MUNGA engine and its L4 (Win32/DirectX) platform layer:

- MUNGA / MUNGA_L4: cross-platform engine core and Win32 backend
- RP / RP_L4: Red Planet game logic and Win32 application
- DivLoader, Setup1: asset loader and installer project
- lib, MUNGA_L4/openal, MUNGA_L4/sos: third-party audio dependencies

Removed stale Subversion metadata and added .gitignore/.gitattributes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 07:59:51 -05:00

32 lines
980 B
C++

#include "mungal4.h"
#pragma hdrstop
#include "l4host.h"
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Constructor for l4host
//
//WinSock support :RB 1/11/07
L4Host::L4Host(HostID host_ID, HostType host_type, const SOCKADDR_IN *network_address, SOCKET network_socket, const CString &net_name)
: Host(host_ID, host_type, network_address), SymbolicName(net_name)
{
NetworkSocket = network_socket;
// ConnectStatus = NoNetworkConnectionStatus;
pad_head = 0;
pad_tail = 0;
pad_size = L4HOST_PAD_BUFFER_SIZE;
#if defined(TRACE_SEND_BUFFER)
sprintf(sendBufferTraceName,"Send Buffer %d",network_address&0xff);
sendBufferTrace = new TraceOf<int>(sendBufferTraceName, 0, Trace::IntegerType, TraceSample::IntegerSnapshot);
Register_Object(sendBufferTrace);
sendBufferTrace->TakeSnapshot(4096);
#endif
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Destructor for l4host
//
L4Host::~L4Host()
{
}