33 ssize_t(
const SocketAddress&,
const std::unique_ptr<IOBuf>&));
38 const std::unique_ptr<folly::IOBuf>&,
MockAsyncUDPSocket(EventBase *evb)
virtual const folly::SocketAddress & address() const
void setFD(int fd, FDOwnership ownership)
MOCK_METHOD3(writeGSO, ssize_t(const folly::SocketAddress &, const std::unique_ptr< folly::IOBuf > &, int))
virtual ssize_t writeGSO(const folly::SocketAddress &address, const std::unique_ptr< folly::IOBuf > &buf, int gso)
virtual void resumeRead(ReadCallback *cob)
virtual ssize_t writev(const folly::SocketAddress &address, const struct iovec *vec, size_t veclen, int gso)
virtual void setErrMessageCallback(ErrMessageCallback *errMessageCallback)
—— Concurrent Priority Queue Implementation ——
~MockAsyncUDPSocket() override
virtual ssize_t write(const folly::SocketAddress &address, const std::unique_ptr< folly::IOBuf > &buf)
MOCK_METHOD1(bind, void(const SocketAddress &))
MOCK_METHOD0(pauseRead, void())
virtual void bind(const folly::SocketAddress &address)
MOCK_METHOD2(setFD, void(NetworkSocket, AsyncUDPSocket::FDOwnership))
MOCK_CONST_METHOD0(address, const SocketAddress &())
virtual int getFD() const
virtual bool isBound() const
virtual void dontFragment(bool df)
virtual void setReusePort(bool reusePort)
virtual void setReuseAddr(bool reuseAddr)
virtual int connect(const folly::SocketAddress &address)