This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Add React in One Minute</title> | |
</head> | |
<body> | |
<h2>Add React in One Minute</h2> | |
<p>This page demonstrates using React with no build tooling.</p> |
// | |
// GameAdapter.cpp | |
// UDPTEST | |
// | |
// Created by Christian Hohlfeld on 16.09.18. | |
// | |
#include <stdio.h> | |
#include "GameAdapter.h" | |
#include "GameServer.h" |
#ifndef GameAdapter_h | |
#define GameAdapter_h | |
#include <stdio.h> | |
#include "yojimbo.h" | |
#include "GameMessageFactory.h" | |
class GameServer; | |
class GameAdapter : public yojimbo::Adapter { | |
public: |
// | |
// GameMessageFactory.h | |
// UDPTEST | |
// | |
// Created by Christian Hohlfeld on 16.09.18. | |
// | |
#ifndef GameMessageFactory_h | |
#define GameMessageFactory_h | |
#include "GameMessageType.h" |
void HelloWorld::ClientSendMessage() { | |
if (client != nullptr && clientGameObject != nullptr) { | |
client->SendTestMessage(clientGameObject->getSprite()->getPositionX(), clientGameObject->getSprite()->getPositionY(), clientGameObject->getSprite()->getRotation()); | |
} | |
} |
// | |
// GameClient.cpp | |
// UDPTEST | |
// | |
// Created by Christian Hohlfeld on 16.09.18. | |
// | |
#include "GameClient.h" | |
#include <iostream> | |
#include <string> |
#pragma once | |
// | |
// GameClient.h | |
// UDPTEST | |
// | |
// Created by Christian Hohlfeld on 16.09.18. | |
// | |
#ifndef GameClient_h |
// | |
// GameServer.cpp | |
// UDPTEST | |
// | |
// Created by Christian Hohlfeld on 16.09.18. | |
// | |
#include "GameServer.h" | |
#include <iostream> | |
#include <string> |
// | |
// GameServer.h | |
// UDPTEST | |
// | |
// Created by Christian Hohlfeld on 16.09.18. | |
// | |
#ifndef GameServer_h | |
#define GameServer_h |