Commit 9af84cf8 authored by jan.koester's avatar jan.koester
Browse files

test

parent b4b9b3fc
Loading
Loading
Loading
Loading
+4 −4
Changes for src/event/iocp.cpp: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ namespace netplus {
			ctx->CurCon->csock->recvData(ctx->RecvBuf, 0);
		};

		void start_write (client* ctx) {
		void start_write (client* ctx ,int tid, ULONG_PTR args) {
			con& c = *ctx->CurCon;

			while (!c.SendData.empty()) {
@@ -261,7 +261,7 @@ namespace netplus {

			if (!c.SendData.empty()) {
				ctx->State = IO_WRITE_STATE;
				start_write(ctx);
				start_write(ctx,tid,args);
			} else {
				ctx->State = IO_READ_STATE;
				start_read(ctx);
@@ -320,14 +320,14 @@ namespace netplus {

							if (!c.SendData.empty()) {
								pClientContext->State = IO_WRITE_STATE;
								start_write(pClientContext);
								start_write(pClientContext,tid,args);
							} else {
								pClientContext->State = IO_READ_STATE;
								start_read(pClientContext);
							}
						} break;
						case IO_WRITE_STATE: {
							start_write(pClientContext);
							start_write(pClientContext,tid,args);
					} break;
					default: {
						NetException exp;