std::string_view 的使用
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include <string_view>
|
||||
|
||||
#include "ASIO_Utils.h"
|
||||
#include "Core/Statistics/Statistics.h"
|
||||
@@ -38,10 +39,10 @@ public:
|
||||
TCP_Server &set_connect_system_buffer_size(size_t size);
|
||||
TCP_Server &set_connect_user_buffer_size(size_t size);
|
||||
TCP_Server &set_recv_system_buffer_size(size_t size);
|
||||
bool listen(const std::string &ip, std::uint32_t port);
|
||||
bool listen(std::string_view ip, std::uint32_t port);
|
||||
bool listen(const Sockaddr_In &address);
|
||||
std::string to_string() override;
|
||||
void write_to_all_clients(const std::string &data);
|
||||
void write_to_all_clients(std::string_view data);
|
||||
|
||||
struct Read_Info {
|
||||
Accept_Info info;
|
||||
|
||||
Reference in New Issue
Block a user