Changeset 27:3c2f8c4beb2c in vscpl for src/hu/varadiistvan


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

An acceptor interface that returns a generic BufferdStream instead of a specific socket.

Location:
src/hu/varadiistvan/scpl/io
Files:
1 added
2 edited

Legend:

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

    r8 r27  
    4343 * connection.
    4444 */
    45 class LocalAcceptor : public FailableReference<LocalAcceptor>
     45class LocalAcceptor : public FailableReference<LocalAcceptor>,
     46                      public BufferedStreamAcceptor
    4647{
    4748public:
     
    7879    LocalSocket* getSocket(size_t readingCapacity = LocalSocket::DEFAULT_CAPACITY,
    7980                           size_t writingCapacity = LocalSocket::DEFAULT_CAPACITY);
     81
     82    /**
     83     * Get the last accepted socket with the given waiter, if any.
     84     */
     85    BufferedStream* getAcceptedBufferedStream(Waiter* waiter = nullptr) override;
    8086};
    8187
  • src/hu/varadiistvan/scpl/io/Makefile.am

    r25 r27  
    3535        WritingBuffer.h         \
    3636        BufferedStream.h        \
     37        BufferedStreamAcceptor.h \
    3738        LocalConnector.h        \
    3839        LocalClientSocket.h     \
Note: See TracChangeset for help on using the changeset viewer.