Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #598

Re: epoll event handling and writing to client.

Newsgroups comp.os.linux.development.apps
Subject Re: epoll event handling and writing to client.
From ankur <nospam_maheshwariankur11@gmail.com.invalid>
References <5a34901e-17e9-4a69-a361-1c471dd84da4@googlegroups.com> <8761xa8hap.fsf@sapphire.mobileactivedefense.com>
Organization !No_Organization!
Message-ID <Q9GdnZkDdvC3uV7MnZ2dnUVZ_qSdnZ2d@giganews.com> (permalink)
Date 2013-06-20 10:47 -0500

Show all headers | View raw


 Rainer Weikusat wrote on 06/19/2013 07:35 ET :
> writes:
> 
> [...]
> 
>> 1)working with read operation for the clients i am able to get only
>> one read notification.if client further send data to server (i mean
>> second or third time) i did not
>> 
>> get any notification of EPOLLIN and my server waiting in epoll_wait
>> call.
>> 
>> 
>> 
> You aren't perchance using epoll in edge-triggered mode? If so, you'll
> need to continue reading data until you get EAGAIN before it is
> guaranteed that you will get another notification when new data
> arrives (NB: It is not guaranteed that you won't get a new
> notification).
> 
>> 2)Secondaly i have to send data to client asynchronously for that i
>> have to generate the EPOLLOUT event but i ab not able to generate
>> that event as my server is waiting for karnal notification in
>> epoll_wait process.
>> 
>> 
>> 
> All of the 'file descriptor I/O multiplexing calls' are for
> interleaving synchronous I/O. Similar to the statement about read,
> when you want to write data, you have to keep writing either until
> everything is written or you get EAGAIN. For the second case, EPOLLOUT
> will tell you when can continue with writing data to this file
> descriptor.
> 
 thanks for answer.
 i am not getting the notification from karnal when i second time enter the data
 from client side. and hence my process stack on epoll_wait(). so my question is
 how to get that notification using edge triggering mode. if u have code please
 share .

Back to comp.os.linux.development.apps | Previous | NextPrevious in thread | Find similar


Thread

epoll event handling and writing to client. maheshwariankur11@gmail.com - 2013-06-19 03:22 -0700
  Re: epoll event handling and writing to client. Rainer Weikusat <rweikusat@mssgmbh.com> - 2013-06-19 12:35 +0100
    Re: epoll event handling and writing to client. ankur <nospam_maheshwariankur11@gmail.com.invalid> - 2013-06-20 10:47 -0500

csiph-web