using namespace anna;
void comm::Poll::setTimeout(const Millisecond &timeout)
-throw() {
+{
if((a_timeout.tv_sec = timeout / 1000) == 0)
a_timeout.tv_usec = timeout * 1000;
else
// Para las dos implementacion el NULL => espera hasta que llegue un mensaje.
//--------------------------------------------------------------------------------------------
void comm::Poll::waitMessage()
-throw(RuntimeException) {
+noexcept(false) {
if(a_ptrTimeout == NULL)
a_pollr = select(a_maxfd, (fd_set*) anna_memcpy(&a_fdset, &a_fdmask, sizeof(fd_set)), NULL);
else {
// (1) Una vez que ha tratado detectado la activada desactiva el indicador
//-----------------------------------------------------------------------------------------
int comm::Poll::fetch()
-throw() {
+{
int result = -1;
while(a_pollr > 0) {
}
void comm::Poll::insert(const int fd)
-throw() {
+{
FD_SET(fd, &a_fdmask);
if(a_maxfd < fd) a_maxfd = fd;
// de pendientes de tratar.
//---------------------------------------------------------------------------------------
void comm::Poll::erase(const int fd)
-throw() {
+{
FD_CLR(fd, &a_fdmask);
if(FD_ISSET(fd, &a_fdset) && a_pollr > 0) { // (1)