kget
net::Socket Class Reference
#include <socket.h>
Inheritance diagram for net::Socket:

Detailed Description
Definition at line 33 of file socket.h.
Public Types | |
| enum | State { IDLE, CONNECTING, CONNECTED, BOUND, CLOSED } |
Public Member Functions | |
| int | accept (Address &a) |
| bool | bind (const QString &ip, Uint16 port, bool also_listen) |
| Uint32 | bytesAvailable () const |
| void | close () |
| bool | connectSuccesFull () |
| bool | connectTo (const Address &addr) |
| int | fd () const |
| const Address & | getPeerName () const |
| bool | isIPv4 () const |
| bool | isIPv6 () const |
| bool | ok () const |
| int | recv (bt::Uint8 *buf, int max_len) |
| int | recvFrom (bt::Uint8 *buf, int max_size, Address &addr) |
| int | send (const bt::Uint8 *buf, int len) |
| int | sendTo (const bt::Uint8 *buf, int size, const Address &addr) |
| void | setNonBlocking () |
| void | setRemoteAddress (const Address &a) |
| bool | setTOS (unsigned char type_of_service) |
| Socket (bool tcp, int ip_version) | |
| Socket (int fd, int ip_version) | |
| State | state () const |
| virtual | ~Socket () |
Member Enumeration Documentation
| enum net::Socket::State |
Constructor & Destructor Documentation
| net::Socket::Socket | ( | int | fd, | |
| int | ip_version | |||
| ) | [explicit] |
Definition at line 62 of file socket.cpp.
| net::Socket::Socket | ( | bool | tcp, | |
| int | ip_version | |||
| ) | [explicit] |
Definition at line 78 of file socket.cpp.
| net::Socket::~Socket | ( | ) | [virtual] |
Definition at line 98 of file socket.cpp.
Member Function Documentation
| int net::Socket::accept | ( | Address & | a | ) |
Definition at line 265 of file socket.cpp.
| bool net::Socket::bind | ( | const QString & | ip, | |
| Uint16 | port, | |||
| bool | also_listen | |||
| ) |
Definition at line 160 of file socket.cpp.
| Uint32 net::Socket::bytesAvailable | ( | ) | const |
Definition at line 311 of file socket.cpp.
| void net::Socket::close | ( | ) |
Definition at line 111 of file socket.cpp.
| bool net::Socket::connectSuccesFull | ( | ) |
| bool net::Socket::connectTo | ( | const Address & | addr | ) |
Definition at line 135 of file socket.cpp.
| int net::Socket::recv | ( | bt::Uint8 * | buf, | |
| int | max_len | |||
| ) |
Definition at line 206 of file socket.cpp.
Definition at line 248 of file socket.cpp.
| int net::Socket::send | ( | const bt::Uint8 * | buf, | |
| int | len | |||
| ) |
Definition at line 188 of file socket.cpp.
Definition at line 230 of file socket.cpp.
| void net::Socket::setNonBlocking | ( | ) |
Definition at line 126 of file socket.cpp.
| void net::Socket::setRemoteAddress | ( | const Address & | a | ) | [inline] |
| bool net::Socket::setTOS | ( | unsigned char | type_of_service | ) |
Definition at line 282 of file socket.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference