Example #1
0
	void onInactive(const ChannelPtr& channel_ptr) override {
		channel_ptr->getChain()->close(channel_ptr);
	}
Example #2
0
	void onActive(const ChannelPtr& channel_ptr) override {
		DEBUG << "............. onActive .............";
		char request[] = "Response ....\n";
		channel_ptr->getChain()->send(channel_ptr, request, strlen(request));
	}