final app

This commit is contained in:
2020-01-11 07:05:54 +01:00
parent dcfb945c0b
commit 31fe531703
68 changed files with 62242 additions and 129 deletions

33
SocketLibrary/Packet.h Normal file
View File

@@ -0,0 +1,33 @@
#pragma once
#include <string>
#include "Result.h"
#include "Endpoint.h"
#include "Socket.h"
namespace SocketLibrary
{
enum class TypeOfMessage
{
Text,
File,
Command
};
class Packet
{
//Result ResolveServer(std::string input, Endpoint& server);
//Result SendMsg(std::string message, Socket client);
//Result SendFile(std::string file, Socket client);
std::string sender;
TypeOfMessage typeOfMessage;
int totalLenght;
int msgLenght;
std::string message;
};
}