- Suppressed net board console output (using debug logging now)

- Added GPL headers to net board source files
This commit is contained in:
SpinDizzy 2020-12-28 16:22:12 +00:00
parent 8df56ddcbf
commit 34c24c0104
6 changed files with 307 additions and 173 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,3 +1,25 @@
/**
** Supermodel
** A Sega Model 3 Arcade Emulator.
** Copyright 2011-2020 Bart Trzynadlowski, Nik Henson, Ian Curtis,
** Harry Tuttle, and Spindizzi
**
** This file is part of Supermodel.
**
** Supermodel is free software: you can redistribute it and/or modify it under
** the terms of the GNU General Public License as published by the Free
** Software Foundation, either version 3 of the License, or (at your option)
** any later version.
**
** Supermodel is distributed in the hope that it will be useful, but WITHOUT
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
** more details.
**
** You should have received a copy of the GNU General Public License along
** with Supermodel. If not, see <http://www.gnu.org/licenses/>.
**/
#ifndef INCLUDED_NETBOARD_H #ifndef INCLUDED_NETBOARD_H
#define INCLUDED_NETBOARD_H #define INCLUDED_NETBOARD_H

View file

@ -1,11 +1,34 @@
/**
** Supermodel
** A Sega Model 3 Arcade Emulator.
** Copyright 2011-2020 Bart Trzynadlowski, Nik Henson, Ian Curtis,
** Harry Tuttle, and Spindizzi
**
** This file is part of Supermodel.
**
** Supermodel is free software: you can redistribute it and/or modify it under
** the terms of the GNU General Public License as published by the Free
** Software Foundation, either version 3 of the License, or (at your option)
** any later version.
**
** Supermodel is distributed in the hope that it will be useful, but WITHOUT
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
** more details.
**
** You should have received a copy of the GNU General Public License along
** with Supermodel. If not, see <http://www.gnu.org/licenses/>.
**/
#include "TCPReceive.h" #include "TCPReceive.h"
#include <chrono> #include "OSD/Logger.h"
#include <chrono>
using namespace std::chrono_literals; using namespace std::chrono_literals;
#if defined(_DEBUG) #if defined(_DEBUG)
#include <stdio.h> #include <stdio.h>
#define DPRINTF printf #define DPRINTF DebugLog
#else #else
#define DPRINTF(a, ...) #define DPRINTF(a, ...)
#endif #endif
@ -99,6 +122,6 @@ void TCPReceive::ListenFunc()
m_receiveSocket = socket; m_receiveSocket = socket;
DPRINTF("Accepted connection.\n"); DPRINTF("Accepted connection.\n");
} }
} }
} }

View file

@ -1,3 +1,25 @@
/**
** Supermodel
** A Sega Model 3 Arcade Emulator.
** Copyright 2011-2020 Bart Trzynadlowski, Nik Henson, Ian Curtis,
** Harry Tuttle, and Spindizzi
**
** This file is part of Supermodel.
**
** Supermodel is free software: you can redistribute it and/or modify it under
** the terms of the GNU General Public License as published by the Free
** Software Foundation, either version 3 of the License, or (at your option)
** any later version.
**
** Supermodel is distributed in the hope that it will be useful, but WITHOUT
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
** more details.
**
** You should have received a copy of the GNU General Public License along
** with Supermodel. If not, see <http://www.gnu.org/licenses/>.
**/
#ifndef _TCPRECEIVE_H_ #ifndef _TCPRECEIVE_H_
#define _TCPRECEIVE_H_ #define _TCPRECEIVE_H_

View file

@ -1,8 +1,31 @@
/**
** Supermodel
** A Sega Model 3 Arcade Emulator.
** Copyright 2011-2020 Bart Trzynadlowski, Nik Henson, Ian Curtis,
** Harry Tuttle, and Spindizzi
**
** This file is part of Supermodel.
**
** Supermodel is free software: you can redistribute it and/or modify it under
** the terms of the GNU General Public License as published by the Free
** Software Foundation, either version 3 of the License, or (at your option)
** any later version.
**
** Supermodel is distributed in the hope that it will be useful, but WITHOUT
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
** more details.
**
** You should have received a copy of the GNU General Public License along
** with Supermodel. If not, see <http://www.gnu.org/licenses/>.
**/
#include "TCPSend.h" #include "TCPSend.h"
#include "OSD/Logger.h"
#if defined(_DEBUG) #if defined(_DEBUG)
#include <stdio.h> #include <stdio.h>
#define DPRINTF printf #define DPRINTF DebugLog
#else #else
#define DPRINTF(a, ...) #define DPRINTF(a, ...)
#endif #endif

View file

@ -1,3 +1,25 @@
/**
** Supermodel
** A Sega Model 3 Arcade Emulator.
** Copyright 2011-2020 Bart Trzynadlowski, Nik Henson, Ian Curtis,
** Harry Tuttle, and Spindizzi
**
** This file is part of Supermodel.
**
** Supermodel is free software: you can redistribute it and/or modify it under
** the terms of the GNU General Public License as published by the Free
** Software Foundation, either version 3 of the License, or (at your option)
** any later version.
**
** Supermodel is distributed in the hope that it will be useful, but WITHOUT
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
** more details.
**
** You should have received a copy of the GNU General Public License along
** with Supermodel. If not, see <http://www.gnu.org/licenses/>.
**/
#ifndef _TCPSEND_H_ #ifndef _TCPSEND_H_
#define _TCPSEND_H_ #define _TCPSEND_H_