1 Star 0 Fork 1

zcy543814 / tcp_echo_server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tcp_echo_server.h 642 Bytes
一键复制 编辑 原始数据 按行查看 历史
大呀大帝国 提交于 2017-01-23 15:40 . init
//
// Created by 倪加奇 on 17-1-23.
// Email: drnijq@126.com
// Copyright (c) 2017 杭州威固网络科技有限公司. All rights reserved.
//
#ifndef TCP_ECHO_SERVER_TCP_ECHO_SERVER_H
#define TCP_ECHO_SERVER_TCP_ECHO_SERVER_H
#include "tcp_echo_connetion.h"
class tcp_echo_server {
public:
tcp_echo_server (boost::asio::io_service &io_server, unsigned short listen_port);
private:
tcp::acceptor _accepter;
unsigned short _ns_listen_port;
void start_accept ();
void handle_accept(tcp_echo_connetion::pointer new_connection, const boost::system::error_code &error);
};
#endif //TCP_ECHO_SERVER_TCP_ECHO_SERVER_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zcy543814/tcp_echo_server.git
git@gitee.com:zcy543814/tcp_echo_server.git
zcy543814
tcp_echo_server
tcp_echo_server
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891