View previous topic :: View next topic |
Author |
Message |
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Wed Apr 19, 2006 12:03 am Post subject: |
|
|
OK, will do. Sent you an email with some thoughts on the selector package -- good stuff! |
|
Back to top |
|
|
wyrmchild
Joined: 27 May 2006 Posts: 12 Location: Europe
|
Posted: Tue Jun 13, 2006 6:19 am Post subject: Waiting bytes... |
|
|
Just a tidbit if you're going to need or use it. In Linux using C/C++, you'd use something like this to get the waiting bytes in socket.
Code: | int waitingBytes;
ioctl(socket, FIONREAD, &waitingBytes) |
I'm not sure what's the point of figuring out the waiting bytes, though. You'd usually just read until it returns errno EWOULDBLOCK in any case.
Sorry if you were already aware of that, as I didn't read everything through.
How is this selector-thingie progressing anyways? |
|
Back to top |
|
|
jcomellas
Joined: 30 Jan 2006 Posts: 22 Location: Buenos Aires, Argentina
|
Posted: Fri Jul 28, 2006 1:41 pm Post subject: Re: Waiting bytes... |
|
|
wyrmchild wrote: | Just a tidbit if you're going to need or use it. In Linux using C/C++, you'd use something like this to get the waiting bytes in socket.
Code: | int waitingBytes;
ioctl(socket, FIONREAD, &waitingBytes) |
I'm not sure what's the point of figuring out the waiting bytes, though. You'd usually just read until it returns errno EWOULDBLOCK in any case.
Sorry if you were already aware of that, as I didn't read everything through.
How is this selector-thingie progressing anyways? |
The basic Selectors (select, poll, epoll) are ready and functional. I'm now working on adding some capabilities to control them from other threads (wake up, close, etc.) and I have a preliminary Reactor implementation. This will all be released in a few weeks. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|