Ignore:
Timestamp:
12/29/12 11:05:33 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Implemented basic test program for the sockets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/xplcommon/posix/LocalServerSocket.cc

    r14 r18  
    3636#include <pwd.h>
    3737#include <unistd.h>
     38#include <poll.h>
    3839
    3940#include <sys/socket.h>
     
    8788//------------------------------------------------------------------------------
    8889
     90bool LocalServerSocket::isReady()
     91{
     92    return false;
     93}
     94
     95//------------------------------------------------------------------------------
     96
     97void LocalServerSocket::handleEvents(short events)
     98{
     99    if ((events&POLLIN)==POLLIN) {
     100        acceptor.accept();
     101    }
     102}
     103
     104//------------------------------------------------------------------------------
     105
    89106// Local Variables:
    90107// mode: C++
Note: See TracChangeset for help on using the changeset viewer.