예제 #1
0
파일: server.cpp 프로젝트: cusnir/gocusp
				virtual void onShutdown()
				{
					printf("Client shutdown.\n");
					ready = false;
					if (os.isValid()) {
						printf("  Shutting down outstream.\n");
						os.shutdown(this);
					} else {
						printf("  Done.\n");
						server.removeConnection(this);
						delete this;
					}
				}