Ignore:
Timestamp:
12/15/22 15:56:58 (2 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

LocalAcceptor implements the BufferStreamAcceptor interface

Location:
src/hu/varadiistvan/scpl/io/_win32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/hu/varadiistvan/scpl/io/_win32/LocalAcceptor.cc

    r9 r29  
    3434
    3535using hu::varadiistvan::scpl::io::LocalAcceptor;
     36
     37using hu::varadiistvan::scpl::io::BufferedStream;
    3638
    3739//------------------------------------------------------------------------------
     
    7375//------------------------------------------------------------------------------
    7476
     77BufferedStream* LocalAcceptor::getAcceptedBufferedStream(Waiter* waiter)
     78{
     79    return (waiter==nullptr) ? getSocket() : getSocket(waiter);
     80}
     81
     82//------------------------------------------------------------------------------
     83
    7584void LocalAcceptor::handleWaitedResult(DWORD /*size*/)
    7685{
  • src/hu/varadiistvan/scpl/io/_win32/LocalAcceptor.h

    r9 r29  
    3131//------------------------------------------------------------------------------
    3232
     33#include "../BufferedStreamAcceptor.h"
     34
    3335#include "Completer.h"
    3436
     
    4648 * local server socket, i.e. named pipe.
    4749 */
    48 class LocalAcceptor : public Completer
     50class LocalAcceptor : public Completer,
     51                      public BufferedStreamAcceptor
    4952{
    5053private:
     
    104107
    105108
     109    /**
     110     * Get the last accepted socket as a buffered stream with the given waiter,
     111     * if any.
     112     */
     113    BufferedStream* getAcceptedBufferedStream(Waiter* waiter = nullptr) override;
     114
    106115protected:
    107116    /**
Note: See TracChangeset for help on using the changeset viewer.