final app
This commit is contained in:
33
SocketLibrary/Packet.h
Normal file
33
SocketLibrary/Packet.h
Normal 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;
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user