18 lines
277 B
C
18 lines
277 B
C
|
#pragma once
|
||
|
|
||
|
#include "TCPCommon.h"
|
||
|
#include <string>
|
||
|
|
||
|
namespace Feather::Network
|
||
|
{
|
||
|
struct SocketAddress
|
||
|
{
|
||
|
static constexpr size_t AddressLength = 65;
|
||
|
|
||
|
SocketAddress(sockaddr* addr);
|
||
|
|
||
|
uint16_t port;
|
||
|
char ip[AddressLength];
|
||
|
};
|
||
|
|
||
|
}
|