// (c) 1995-2014 by Artsoft Entertainment
// Holger Schemel
// info@artsoft.org
-// http://www.artsoft.org/
+// https://www.artsoft.org/
// ----------------------------------------------------------------------------
// netserv.c
// ============================================================================
if (!(file = fopen(filename, MODE_WRITE)))
{
- Error(ERR_WARN, "cannot write file '%s' from network buffer", filename);
+ Warn("cannot write file '%s' from network buffer", filename);
return 0;
}
if (!(file = openFile(filename, MODE_READ)))
{
- Error(ERR_WARN, "cannot read file '%s' to network buffer", filename);
+ Warn("cannot read file '%s' to network buffer", filename);
return 0;
}
exit(exit_value);
}
-/* the following is not used for a standalone server;
- the pointer points to an integer containing the port-number */
+// the following is not used for a standalone server;
+// the pointer points to an integer containing the port-number
int NetworkServerThread(void *ptr)
{
NetworkServer(*((int *) ptr), 0);
// accept incoming TCP connections
if (SDLNet_SocketReady(lfd))
{
- Error(ERR_DEBUG, "got TCP packet");
+ Debug("network:server", "got TCP packet");
TCPsocket newsock;
// accept incoming UDP packets
if (SDLNet_SocketReady(udp))
{
- Error(ERR_DEBUG, "got UDP packet");
+ Debug("network:server", "got UDP packet");
static UDPpacket packet;