示例#1
0
文件: Client.cpp 项目: jellor/mars
	void onInactive(const ChannelPtr& channel_ptr) override {
		channel_ptr->getChain()->close(channel_ptr);
	}
示例#2
0
文件: Client.cpp 项目: jellor/mars
	void onActive(const ChannelPtr& channel_ptr) override {
		DEBUG << "............. onActive .............";
		char request[] = "Response ....\n";
		channel_ptr->getChain()->send(channel_ptr, request, strlen(request));
	}