|
libktorrent
2.1.1
|
#include <utpsocket.h>

Public Member Functions | |
| UTPSocket (Connection::WPtr conn) | |
| bt::Uint32 | bytesAvailable () const override |
| void | close () override |
| bool | connectSuccesFull () override |
| See if a connectTo was succesfull in non blocking mode. | |
| bool | connectTo (const net::Address &addr) override |
| int | fd () const override |
| const net::Address & | getPeerName () const override |
| net::Address | getSockName () const override |
| bool | ok () const override |
| void | prepare (net::Poll *p, net::Poll::Mode mode) override |
| Prepare for polling. | |
| bool | ready (const net::Poll *p, net::Poll::Mode mode) const override |
| Check if the socket is ready according to the poll. | |
| int | recv (bt::Uint8 *buf, int max_len) override |
| void | reset () override |
| reset the socket (i.e. close it and create a new one) | |
| int | send (const bt::Uint8 *buf, int len) override |
| void | setBlocking (bool on) override |
| bool | setTOS (unsigned char type_of_service) override |
Public Member Functions inherited from net::SocketDevice | |
| SocketDevice (bt::TransportProtocol proto) | |
| void | setRemoteAddress (const Address &a) |
| State | state () const |
| bt::TransportProtocol | transportProtocol () const |
| Get the used transport protocol for this SocketDevice. | |
Additional Inherited Members | |
Public Types inherited from net::SocketDevice | |
| enum | State { IDLE, CONNECTING, CONNECTED, BOUND, CLOSED } |
Protected Attributes inherited from net::SocketDevice | |
| Address | addr |
| State | m_state |
| bool | remote_addr_override |
| bt::TransportProtocol | transport_protocol |
UTPSocket class serves as an interface for the networking code.
Definition at line 53 of file utpsocket.h.
1.8.18