Wayland example window
This commit is contained in:
parent
160b746182
commit
26f54c4581
30 changed files with 825 additions and 22 deletions
|
@ -3,6 +3,8 @@
|
|||
#include "UnixSocketInterface.h"
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
|
||||
NetworkManager::NetworkManager()
|
||||
: mActiveSockets(),
|
||||
mSocketInterface()
|
||||
|
@ -29,6 +31,7 @@ void NetworkManager::Initialize()
|
|||
|
||||
void NetworkManager::RunHttpServer()
|
||||
{
|
||||
std::cout << "Running http server" << std::endl;
|
||||
if (!mSocketInterface)
|
||||
{
|
||||
Initialize();
|
||||
|
@ -40,6 +43,19 @@ void NetworkManager::RunHttpServer()
|
|||
mSocketInterface->Run(socket);
|
||||
}
|
||||
|
||||
void NetworkManager::RunHttpClient()
|
||||
{
|
||||
std::cout << "Running http client" << std::endl;
|
||||
if (!mSocketInterface)
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
|
||||
auto socket = Socket::Create();
|
||||
mSocketInterface->InitializeSocket(socket, "127.0.0.1");
|
||||
mSocketInterface->Write(socket, "Hello Friend");
|
||||
}
|
||||
|
||||
void NetworkManager::ShutDown()
|
||||
{
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue