Clean up some test files.
This commit is contained in:
parent
1adc9272f8
commit
b45385e8c7
51 changed files with 485 additions and 281 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue