S
stu
I am looking for a good way to handle numerous sockets (1 UDP and as
many as 20+ TCP child sockets) in WM 5.0 using C# and the .NETCFv2.
Currently, I'm using async class and it works fine for small numbers of
sockets; 1 UDP and up to 15 or so TCP child sockets. When I get to
more than 15 (or so) I have an issue with other threads, using the
threadpool, not running. Specifically, I have a managing thread (using
the System.Threading.Timer stuff) that ceases to be called once the
number of async calls gets rather high. Do the async socket calls
block the threadpool threads? If so, is there a way to get around
this, or the is the best idea just not to use async socket calls in
this situation? I can't find any good documentation on how things are
handled within the OS (a pointer to such documentation would be
_greatly_ appreciated, too). I was at MEDC in Vegas last week, but
failed to catch one of the VM Core developers to bug them about this.
select() is there a way to add another event that I can raise to get
select() to come back or will it only respond to socket events? For
example, I want to add another socket to the read array. I know in the
old-school select() you could use generic events in the select array.
Many thanks!!!
stu =)
many as 20+ TCP child sockets) in WM 5.0 using C# and the .NETCFv2.
Currently, I'm using async class and it works fine for small numbers of
sockets; 1 UDP and up to 15 or so TCP child sockets. When I get to
more than 15 (or so) I have an issue with other threads, using the
threadpool, not running. Specifically, I have a managing thread (using
the System.Threading.Timer stuff) that ceases to be called once the
number of async calls gets rather high. Do the async socket calls
block the threadpool threads? If so, is there a way to get around
this, or the is the best idea just not to use async socket calls in
this situation? I can't find any good documentation on how things are
handled within the OS (a pointer to such documentation would be
_greatly_ appreciated, too). I was at MEDC in Vegas last week, but
failed to catch one of the VM Core developers to bug them about this.
better method for handling a large number of sockets. When usingFrom looking at other posts, it seems that Socket.Select() is a much
select() is there a way to add another event that I can raise to get
select() to come back or will it only respond to socket events? For
example, I want to add another socket to the read array. I know in the
old-school select() you could use generic events in the select array.
Many thanks!!!
stu =)