示例#1
0
文件: server.cpp 项目: cusnir/gocusp
				// OutStream::ShutdownHandler implementation
				virtual void onShutdown(bool success)
				{
					printf("Shut down %s.\n", (success) ? "successfully" : "failed");
					if (os.isValid() && !success)
						os.reset();
					server.removeConnection(this);
					delete this;
				}
示例#2
0
文件: server.cpp 项目: cusnir/gocusp
				virtual void onReset()
				{
					// (InStream OR OutStream reset)
					printf("Reset.\n");
					is.reset();
					if (os.isValid())
						os.reset();
					server.removeConnection(this);
				}