FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Selector support (select/poll/epoll/WaitForMultipleObjects)
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic     Forum Index -> Mango
View previous topic :: View next topic  
Author Message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Wed Apr 19, 2006 12:03 am    Post subject: Reply with quote

OK, will do. Sent you an email with some thoughts on the selector package -- good stuff!
Back to top
View user's profile Send private message
wyrmchild



Joined: 27 May 2006
Posts: 12
Location: Europe

PostPosted: Tue Jun 13, 2006 6:19 am    Post subject: Waiting bytes... Reply with quote

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
View user's profile Send private message
jcomellas



Joined: 30 Jan 2006
Posts: 22
Location: Buenos Aires, Argentina

PostPosted: Fri Jul 28, 2006 1:41 pm    Post subject: Re: Waiting bytes... Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Mango All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
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