Changeset 11:9adb0b9c456b in xplcommon for src/xplcommon/posix/Socket.h


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

Implemented the server side of the local socket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/xplcommon/posix/Socket.h

    r6 r11  
    6767           size_t writingCapacity = DEFAULT_CAPACITY);
    6868
     69    /**
     70     * Construct the socket with the given file descriptor.
     71     */
     72    Socket(int fd, Waiter* waiter = 0,
     73           size_t readingCapacity = DEFAULT_CAPACITY,
     74           size_t writingCapacity = DEFAULT_CAPACITY);
     75
    6976public:
    7077    /**
     
    8996//------------------------------------------------------------------------------
    9097
     98inline Socket::Socket(int fd, Waiter* waiter,
     99                      size_t readingCapacity, size_t writingCapacity) :
     100    BufferedWaitable(waiter, fd, readingCapacity, writingCapacity)
     101{
     102}
     103
     104//------------------------------------------------------------------------------
     105
    91106} /* namespace xplcommon::posix */ } /* namespace xplcommon */
    92107
Note: See TracChangeset for help on using the changeset viewer.