Clean up some test files.

This commit is contained in:
James Grogan 2022-11-30 18:28:50 +00:00
parent 1adc9272f8
commit b45385e8c7
51 changed files with 485 additions and 281 deletions

View file

@ -31,7 +31,6 @@ void NetworkManager::Initialize()
void NetworkManager::RunHttpServer()
{
std::cout << "Running http server" << std::endl;
if (!mSocketInterface)
{
Initialize();
@ -45,7 +44,6 @@ void NetworkManager::RunHttpServer()
void NetworkManager::RunHttpClient()
{
std::cout << "Running http client" << std::endl;
if (!mSocketInterface)
{
Initialize();

View file

@ -1,9 +1,10 @@
#include "UnixSocketInterface.h"
#include "HttpResponse.h"
#include "HttpMessageHandler.h"
#include "FileLogger.h"
#include <iostream>
#include <unistd.h>
#include <string.h>
@ -43,7 +44,7 @@ void UnixSocketInterface::Write(const SocketPtr& socket, const std::string& mess
{
if(socket->GetHandle() < 0)
{
std::cerr << "Error opening socket" << std::endl;
MLOG_ERROR("Error opening socket" );
return;
}
@ -58,7 +59,7 @@ void UnixSocketInterface::Write(const SocketPtr& socket, const std::string& mess
int result = connect(socket->GetHandle(), (struct sockaddr *)&serv_addr, sizeof(serv_addr));
if(result< 0)
{
std::cerr << "Error connecting to socket" << std::endl;
MLOG_ERROR("Error connecting to socket" );
return;
}