proxygen
GSOSendTest Class Reference

Public Member Functions

 GSOSendTest (folly::AsyncUDPSocket &socket, const folly::SocketAddress &address, int gso, size_t size1, size_t size2=0)
 
ssize_t get () const
 

Private Attributes

ssize_t ret_
 

Detailed Description

Definition at line 433 of file AsyncUDPSocketGSOTest.cpp.

Constructor & Destructor Documentation

GSOSendTest::GSOSendTest ( folly::AsyncUDPSocket socket,
const folly::SocketAddress address,
int  gso,
size_t  size1,
size_t  size2 = 0 
)
inlineexplicit

Definition at line 435 of file AsyncUDPSocketGSOTest.cpp.

References GSOBuf::get(), and folly::AsyncUDPSocket::writeGSO().

440  {
441  GSOBuf buf(size1, size2);
442 
443  ret_ = socket.writeGSO(address, buf.get(), gso);
444  }
virtual ssize_t writeGSO(const folly::SocketAddress &address, const std::unique_ptr< folly::IOBuf > &buf, int gso)

Member Function Documentation

ssize_t GSOSendTest::get ( ) const
inline

Definition at line 446 of file AsyncUDPSocketGSOTest.cpp.

446  {
447  return ret_;
448  }

Member Data Documentation

ssize_t GSOSendTest::ret_
private

Definition at line 451 of file AsyncUDPSocketGSOTest.cpp.


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