proxygen
TestAsyncUDPSocket Class Reference
Inheritance diagram for TestAsyncUDPSocket:
folly::AsyncUDPSocket folly::EventHandler

Public Member Functions

 TestAsyncUDPSocket (EventBase *evb)
 
 MOCK_METHOD3 (sendmsg, ssize_t(folly::NetworkSocket, const struct msghdr *, int))
 
- Public Member Functions inherited from folly::AsyncUDPSocket
 AsyncUDPSocket (EventBase *evb)
 
 ~AsyncUDPSocket () override
 
virtual const folly::SocketAddressaddress () const
 
virtual void bind (const folly::SocketAddress &address)
 
void setFD (int fd, FDOwnership ownership)
 
virtual void setFD (NetworkSocket fd, FDOwnership ownership)
 
virtual ssize_t write (const folly::SocketAddress &address, const std::unique_ptr< folly::IOBuf > &buf)
 
virtual ssize_t writeGSO (const folly::SocketAddress &address, const std::unique_ptr< folly::IOBuf > &buf, int gso)
 
virtual ssize_t writev (const folly::SocketAddress &address, const struct iovec *vec, size_t veclen, int gso)
 
virtual ssize_t writev (const folly::SocketAddress &address, const struct iovec *vec, size_t veclen)
 
virtual void resumeRead (ReadCallback *cob)
 
virtual void pauseRead ()
 
virtual void close ()
 
virtual int getFD () const
 
virtual void setReusePort (bool reusePort)
 
virtual void setReuseAddr (bool reuseAddr)
 
virtual void setRcvBuf (int rcvBuf)
 
virtual void setSndBuf (int sndBuf)
 
virtual void setBusyPoll (int busyPollUs)
 
EventBasegetEventBase () const
 
virtual void dontFragment (bool df)
 
virtual void setErrMessageCallback (ErrMessageCallback *errMessageCallback)
 
virtual int connect (const folly::SocketAddress &address)
 
virtual bool isBound () const
 
virtual void detachEventBase ()
 
virtual void attachEventBase (folly::EventBase *evb)
 
int getGSO ()
 
bool setGSO (int val)
 
- Public Member Functions inherited from folly::EventHandler
 EventHandler (EventBase *eventBase, int fd)
 
 EventHandler (EventBase *eventBase=nullptr, NetworkSocket fd=NetworkSocket())
 
virtual ~EventHandler ()
 
bool registerHandler (uint16_t events)
 
void unregisterHandler ()
 
bool isHandlerRegistered () const
 
void attachEventBase (EventBase *eventBase)
 
void detachEventBase ()
 
void changeHandlerFD (int fd)
 
void changeHandlerFD (NetworkSocket fd)
 
void initHandler (EventBase *eventBase, int fd)
 
void initHandler (EventBase *eventBase, NetworkSocket fd)
 
uint16_t getRegisteredEvents () const
 
bool registerInternalHandler (uint16_t events)
 
bool isPending () const
 

Additional Inherited Members

- Public Types inherited from folly::AsyncUDPSocket
enum  FDOwnership { FDOwnership::OWNS, FDOwnership::SHARED }
 
- Public Types inherited from folly::EventHandler
enum  EventFlags {
  NONE = 0, READ = EV_READ, WRITE = EV_WRITE, READ_WRITE = (READ | WRITE),
  PERSIST = EV_PERSIST
}
 
- Protected Member Functions inherited from folly::AsyncUDPSocket
virtual ssize_t sendmsg (NetworkSocket socket, const struct msghdr *message, int flags)
 
size_t handleErrMessages () noexcept
 
void failErrMessageRead (const AsyncSocketException &ex)
 
- Protected Attributes inherited from folly::AsyncUDPSocket
ReadCallbackreadCallback_
 

Detailed Description

Definition at line 457 of file AsyncUDPSocketTest.cpp.

Constructor & Destructor Documentation

TestAsyncUDPSocket::TestAsyncUDPSocket ( EventBase evb)
inlineexplicit

Definition at line 459 of file AsyncUDPSocketTest.cpp.

References MOCK_METHOD3, and folly::netops::sendmsg().

459 : AsyncUDPSocket(evb) {}
AsyncUDPSocket(EventBase *evb)

Member Function Documentation

TestAsyncUDPSocket::MOCK_METHOD3 ( sendmsg  ,
ssize_t(folly::NetworkSocket, const struct msghdr *, int)   
)

The documentation for this class was generated from the following file: