flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
f0dder
CreateThread returns a HANDLE for the thread, which can be used for things like waiting until the thread terminates. If you don't use this handle, close it right away. If you use it, still remember to close it once the thread terminates. Otherwise you'll get a leak.
Haven't dealt with IOCP myself, so can't help you there - I dunno if www.madwizard.org got around to describing it in his socket tutorial. |
|||
![]() |
|
sleepsleep
microsoft msdn acceptex() function provide some sample code regarding this function.
http://msdn.microsoft.com/en-us/library/ms737524(VS.85).aspx |
|||
![]() |
|
Biterider
Hi
Recently I coded with some help a complete engine around IOCP using ObjAsm32. It is masm and OOP code, but you can use it as a reference to see how to use it. In the main file headers, you can find a collection of usefull links to some very interesting articles. NetCom (name of the engine) is availabe as an update of the last ObjAsm32 release. Biterider |
|||
![]() |
|
sleepsleep
few years ago, 2006,
now, 2011, am attempting to do it again, i coded the iocp echo server (based on internet resource) the problem now is, how is that to close those socket. example scenario. user open up telnet localhost 80 to my sock server that listen on 80, then they just leave it like that, maybe key in a few characters then they idle. how am i going to set it to close, force close that socket once i detect no more io operation in 10 seconds. is that some option we could set on the accept socket? |
|||
![]() |
|
typedef
if the socket has done it's job and there's no use for it, yes close it. otherwise wait for clients.
|
|||
![]() |
|
sleepsleep
is there option for it to automatically close once idle for 10 seconds?
instead of "i try to code a polling" to check it? |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.