NSCpp 2.0
NSCpp is a modern C++20 server/client framework designed to simplify network programming in C++. With robust support for both IPv4 and IPv6, as well as TCP and UDP communication protocols.
 
Loading...
Searching...
No Matches
ClientData Struct Reference

Structure which hold the Client's Data after an event. More...

#include <ClientPP.h>

Public Attributes

EventType type
 Type of the event : Connection, Disconnection, DataReceived.
 
ConnType connType
 Connection type of this event : TCP or UDP.
 
IP_Type ipType
 IP type : IPv4 or IPv6.
 
SOCKET socket
 In TCP -> Client's socket; in UDP -> Server's socket.
 
SIN addr
 Client's address.
 
std::shared_ptr< ClientPPclient
 Shared pointer of the client which produced the event (nullptr for UDP).
 
std::vector< std::string > data
 Vector with the string obtained after a split on the separator.
 

Detailed Description

Structure which hold the Client's Data after an event.

Member Data Documentation

◆ addr

SIN ClientData::addr

Client's address.

◆ client

std::shared_ptr<ClientPP> ClientData::client

Shared pointer of the client which produced the event (nullptr for UDP).

◆ connType

ConnType ClientData::connType

Connection type of this event : TCP or UDP.

◆ data

std::vector<std::string> ClientData::data

Vector with the string obtained after a split on the separator.

◆ ipType

IP_Type ClientData::ipType

IP type : IPv4 or IPv6.

◆ socket

SOCKET ClientData::socket

In TCP -> Client's socket; in UDP -> Server's socket.

◆ type

EventType ClientData::type

Type of the event : Connection, Disconnection, DataReceived.


The documentation for this struct was generated from the following file: