• R/O
  • SSH

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG), Euroboros (EB), and Down Under Doomers (DUD).


Commit MetaInfo

Révision5fe883d4ca3c02d9d0b21a85cfd45b1fcf97b9a2 (tree)
l'heure2015-08-21 01:50:12
AuteurTeemu Piippo <crimsondusk64@gmai...>
CommiterTeemu Piippo

Message de Log

Remove the legacy interface. Updated RCON utility for what it's worth.

Change Summary

Modification

diff -r 22900c0cec22 -r 5fe883d4ca3c masterserver/network.cpp
--- a/masterserver/network.cpp Thu Aug 20 19:31:53 2015 +0300
+++ b/masterserver/network.cpp Thu Aug 20 19:50:12 2015 +0300
@@ -339,35 +339,6 @@
339339
340340 //*****************************************************************************
341341 //
342-char *NETWORK_AddressToString( NETADDRESS_s Address )
343-{
344- static char s_szAddress[64];
345-
346- sprintf( s_szAddress, "%i.%i.%i.%i:%i", Address.abIP[0], Address.abIP[1], Address.abIP[2], Address.abIP[3], ntohs( Address.usPort ));
347-
348- return ( s_szAddress );
349-}
350-
351-//*****************************************************************************
352-//
353-char *NETWORK_AddressToStringIgnorePort( NETADDRESS_s Address )
354-{
355- static char s_szAddress[64];
356-
357- sprintf( s_szAddress, "%i.%i.%i.%i", Address.abIP[0], Address.abIP[1], Address.abIP[2], Address.abIP[3] );
358-
359- return ( s_szAddress );
360-}
361-
362-//*****************************************************************************
363-//
364-void NETWORK_SetAddressPort( NETADDRESS_s &Address, USHORT usPort )
365-{
366- Address.usPort = htons( usPort );
367-}
368-
369-//*****************************************************************************
370-//
371342 NETADDRESS_s NETWORK_GetLocalAddress( void )
372343 {
373344 char szBuffer[512];
diff -r 22900c0cec22 -r 5fe883d4ca3c masterserver/network.h
--- a/masterserver/network.h Thu Aug 20 19:31:53 2015 +0300
+++ b/masterserver/network.h Thu Aug 20 19:50:12 2015 +0300
@@ -73,9 +73,6 @@
7373 int NETWORK_GetLANPackets( void );
7474 NETADDRESS_s NETWORK_GetFromAddress( void );
7575 void NETWORK_LaunchPacket( NETBUFFER_s *pBuffer, NETADDRESS_s Address );
76-char *NETWORK_AddressToString( NETADDRESS_s Address );
77-char *NETWORK_AddressToStringIgnorePort( NETADDRESS_s Address );
78-void NETWORK_SetAddressPort( NETADDRESS_s &Address, USHORT usPort );
7976 //AActor *NETWORK_FindThingByNetID( LONG lID );
8077 NETADDRESS_s NETWORK_GetLocalAddress( void );
8178 NETBUFFER_s *NETWORK_GetNetworkMessageBuffer( void );
diff -r 22900c0cec22 -r 5fe883d4ca3c rcon_utility/main.cpp
--- a/rcon_utility/main.cpp Thu Aug 20 19:31:53 2015 +0300
+++ b/rcon_utility/main.cpp Thu Aug 20 19:50:12 2015 +0300
@@ -467,7 +467,7 @@
467467
468468 // Read in what the user gave us.
469469 GetDlgItemText( hDlg, IDC_SERVERIP, szBuffer, 128 );
470- NETADDRESS_s::FromString( szBuffer, g_ServerAddress );
470+ g_ServerAddress = NETADDRESS_s::FromString( szBuffer );
471471 GetDlgItemText( hDlg, IDC_PASSWORD, g_szPassword, 128 );
472472
473473 // If the user didn't specify a port, use the default one.
@@ -582,7 +582,7 @@
582582 SetDlgItemText( g_hDlg, IDC_PASSWORD, g_Favorites[iIndex].szPassword );
583583
584584 // Connect.
585- NETADDRESS_s::FromString( g_Favorites[iIndex].szAddress, g_ServerAddress );
585+ g_ServerAddress = NETADDRESS_s::FromString( g_Favorites[iIndex].szAddress );
586586 strncpy( g_szPassword, g_Favorites[iIndex].szPassword, 127 );
587587 main_AttemptConnection( );
588588 }
diff -r 22900c0cec22 -r 5fe883d4ca3c src/network.cpp
--- a/src/network.cpp Thu Aug 20 19:31:53 2015 +0300
+++ b/src/network.cpp Thu Aug 20 19:50:12 2015 +0300
@@ -773,27 +773,6 @@
773773
774774 //*****************************************************************************
775775 //
776-const char *NETWORK_AddressToString( NETADDRESS_s Address )
777-{
778- return Address.ToString();
779-}
780-
781-//*****************************************************************************
782-//
783-const char *NETWORK_AddressToStringIgnorePort( NETADDRESS_s Address )
784-{
785- return Address.ToStringNoPort();
786-}
787-
788-//*****************************************************************************
789-//
790-void NETWORK_SetAddressPort( NETADDRESS_s &Address, USHORT usPort )
791-{
792- Address.SetPort( usPort );
793-}
794-
795-//*****************************************************************************
796-//
797776 NETADDRESS_s NETWORK_GetLocalAddress( void )
798777 {
799778 char szBuffer[512];
diff -r 22900c0cec22 -r 5fe883d4ca3c src/network.h
--- a/src/network.h Thu Aug 20 19:31:53 2015 +0300
+++ b/src/network.h Thu Aug 20 19:50:12 2015 +0300
@@ -344,9 +344,6 @@
344344 int NETWORK_GetLANPackets( void );
345345 NETADDRESS_s NETWORK_GetFromAddress( void );
346346 void NETWORK_LaunchPacket( NETBUFFER_s *pBuffer, NETADDRESS_s Address );
347-const char *NETWORK_AddressToString( NETADDRESS_s Address );
348-const char *NETWORK_AddressToStringIgnorePort( NETADDRESS_s Address );
349-void NETWORK_SetAddressPort( NETADDRESS_s &Address, USHORT usPort );
350347 NETADDRESS_s NETWORK_GetLocalAddress( void );
351348 NETADDRESS_s NETWORK_GetCachedLocalAddress( void );
352349 NETBUFFER_s *NETWORK_GetNetworkMessageBuffer( void );
diff -r 22900c0cec22 -r 5fe883d4ca3c src/networkshared.cpp
--- a/src/networkshared.cpp Thu Aug 20 19:31:53 2015 +0300
+++ b/src/networkshared.cpp Thu Aug 20 19:50:12 2015 +0300
@@ -511,34 +511,6 @@
511511
512512 //*****************************************************************************
513513 //
514-bool NETWORK_CompareAddress( NETADDRESS_s Address1, NETADDRESS_s Address2, bool bIgnorePort )
515-{
516- return Address1.Compare( Address2, bIgnorePort );
517-}
518-
519-//*****************************************************************************
520-//
521-bool NETWORK_StringToAddress( const char *s, NETADDRESS_s *a )
522-{
523- return a->LoadFromString( s );
524-}
525-
526-//*****************************************************************************
527-//
528-void NETWORK_SocketAddressToNetAddress( struct sockaddr_in *s, NETADDRESS_s *a )
529-{
530- *a = NETADDRESS_s::FromSocketAddress( *s );
531-}
532-
533-//*****************************************************************************
534-//
535-void NETWORK_NetAddressToSocketAddress( NETADDRESS_s &Address, struct sockaddr_in &SocketAddress )
536-{
537- SocketAddress = Address.ToSocketAddress();
538-}
539-
540-//*****************************************************************************
541-//
542514 bool NETWORK_StringToIP( const char *pszAddress, char *pszIP0, char *pszIP1, char *pszIP2, char *pszIP3 )
543515 {
544516 char szCopy[16];
@@ -630,20 +602,6 @@
630602 return ( true );
631603 }
632604
633-//*****************************************************************************
634-//
635-void NETWORK_AddressToIPStringArray( const NETADDRESS_s &Address, IPStringArray &szAddress )
636-{
637- Address.ToIPStringArray( szAddress );
638-}
639-
640-//*****************************************************************************
641-//
642-const char *NETWORK_GetHostByIPAddress( NETADDRESS_s Address )
643-{
644- return Address.ToHostName();
645-}
646-
647605 //--------------------------------------------------------------------------------------------------------------------------------------------------
648606 //-- CLASSES ---------------------------------------------------------------------------------------------------------------------------------------
649607 //--------------------------------------------------------------------------------------------------------------------------------------------------
diff -r 22900c0cec22 -r 5fe883d4ca3c src/networkshared.h
--- a/src/networkshared.h Thu Aug 20 19:31:53 2015 +0300
+++ b/src/networkshared.h Thu Aug 20 19:50:12 2015 +0300
@@ -295,13 +295,7 @@
295295 void NETWORK_WriteString( BYTESTREAM_s *pByteStream, const char *pszString );
296296
297297 void NETWORK_WriteHeader( BYTESTREAM_s *pByteStream, int Byte );
298-bool NETWORK_CompareAddress( NETADDRESS_s Address1, NETADDRESS_s Address2, bool bIgnorePort );
299-bool NETWORK_StringToAddress( const char *pszString, NETADDRESS_s *pAddress );
300-void NETWORK_SocketAddressToNetAddress( struct sockaddr_in *s, NETADDRESS_s *a );
301-void NETWORK_NetAddressToSocketAddress( NETADDRESS_s &Address, struct sockaddr_in &SocketAddress );
302298 bool NETWORK_StringToIP( const char *pszAddress, char *pszIP0, char *pszIP1, char *pszIP2, char *pszIP3 );
303-void NETWORK_AddressToIPStringArray( const NETADDRESS_s &Address, IPStringArray &szAddress );
304-const char *NETWORK_GetHostByIPAddress( NETADDRESS_s Address );
305299
306300 //--------------------------------------------------------------------------------------------------------------------------------------------------
307301 //-- CLASSES ---------------------------------------------------------------------------------------------------------------------------------------