Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
interfaces.h File Reference

Convenience header that includes core network interfaces. More...

#include "i_network_component.h"
#include "i_session.h"
#include "connection_observer.h"
#include "i_client.h"
#include "i_server.h"
#include "i_protocol_client.h"
#include "i_protocol_server.h"
Include dependency graph for interfaces.h:

Go to the source code of this file.

Detailed Description

Convenience header that includes core network interfaces.

This header provides a single include point for core interface definitions used in the composition-based architecture.

Recommended Usage

For most use cases, prefer the facade API which provides a simpler interface:

Simplified facade for creating TCP clients and servers.
Definition tcp_facade.h:95
auto create_client(const client_config &config) const -> Result< std::shared_ptr< interfaces::i_protocol_client > >
Creates a TCP client with the specified configuration.
Simplified facade for creating TCP clients and servers.
Simplified facade for creating UDP clients and servers.
Simplified facade for creating WebSocket clients and servers.

Direct Interface Usage

If you need to implement custom components:

// ...
};
Base interface for all network components.
Convenience header that includes core network interfaces.
See also
i_protocol_client - Common interface for all protocol clients
i_protocol_server - Common interface for all protocol servers
i_network_component - Base interface for network components
i_client - Base client interface
i_server - Base server interface

Definition in file interfaces.h.