#include <Socket.h>

Public Member Functions | |
| bool | Accept (Socket &s) const |
| bool | Accept (Socket *s) const |
| bool | Bind (const int port) |
| bool | Close () |
| bool | Connect (const char *host, const int port) |
| bool | Create () |
| void | hideErrors () |
| bool | IsBroken () const |
| bool | IsOpen () const |
| bool | Listen () |
| bool | Open (Socket *newsocket) |
| bool | Open () |
| bool | PrepareServer () |
| size_t | Receive (unsigned char *s, size_t max_size) |
| size_t | Send (const unsigned char *s, size_t size) |
| bool | SendAll (const unsigned char *s, size_t size, size_t millisec) |
| void | SetNonBlocking (const bool) |
| void | showErrors () |
| Socket () | |
| Socket (const char *_host, int _port) | |
| Socket (int port) | |
| bool | WaitBuffer (unsigned char *s, size_t size, size_t millisec) |
| bool | WaitData (size_t millisec) |
| ~Socket () | |
Protected Attributes | |
| bool | accepting |
| bool | broken_pipe |
| char * | host |
| bool | outputErrors |
| int | port |
| bool | server |
Private Attributes | |
| sockaddr_in | m_addr |
| int | m_sock |
| fd_set | rfs |
| Socket::Socket | ( | ) |
Signature> Author : Cedric Pradalier Universite : INRIA - GRAVIR - INPG Email : cedric.pradalier@inrialpes.fr Contexte : These MESR Date : 2001 - 2004 License : Libre (???) <Signature
Definition at line 27 of file Socket.cpp.
| Socket::Socket | ( | const char * | _host, |
| int | _port | ||
| ) |
Definition at line 42 of file Socket.cpp.
| Socket::Socket | ( | int | port | ) |
Definition at line 54 of file Socket.cpp.
| Socket::~Socket | ( | ) |
Definition at line 67 of file Socket.cpp.
| bool Socket::Accept | ( | Socket & | s | ) | const [inline] |
| bool Socket::Accept | ( | Socket * | s | ) | const |
Definition at line 162 of file Socket.cpp.
| bool Socket::Bind | ( | const int | port | ) |
Definition at line 118 of file Socket.cpp.
| bool Socket::Close | ( | ) |
Definition at line 80 of file Socket.cpp.
| bool Socket::Connect | ( | const char * | host, |
| const int | port | ||
| ) |
Definition at line 229 of file Socket.cpp.
| bool Socket::Create | ( | void | ) |
Definition at line 88 of file Socket.cpp.
| void Socket::hideErrors | ( | ) | [inline] |
| bool Socket::IsBroken | ( | ) | const [inline] |
| bool Socket::IsOpen | ( | ) | const [inline] |
| bool Socket::Listen | ( | ) |
Definition at line 145 of file Socket.cpp.
| bool Socket::Open | ( | Socket * | newsocket | ) |
Reimplemented in SocketCom.
Definition at line 403 of file Socket.cpp.
| bool Socket::Open | ( | ) |
Reimplemented in SocketCom.
Definition at line 415 of file Socket.cpp.
| bool Socket::PrepareServer | ( | ) |
Reimplemented in SocketCom.
Definition at line 382 of file Socket.cpp.
| size_t Socket::Receive | ( | unsigned char * | s, |
| size_t | max_size | ||
| ) |
Definition at line 199 of file Socket.cpp.
| size_t Socket::Send | ( | const unsigned char * | s, |
| size_t | size | ||
| ) |
Definition at line 171 of file Socket.cpp.
| bool Socket::SendAll | ( | const unsigned char * | s, |
| size_t | size, | ||
| size_t | millisec | ||
| ) |
Definition at line 355 of file Socket.cpp.
| void Socket::SetNonBlocking | ( | const bool | b | ) |
Definition at line 261 of file Socket.cpp.
| void Socket::showErrors | ( | ) | [inline] |
| bool Socket::WaitBuffer | ( | unsigned char * | s, |
| size_t | size, | ||
| size_t | millisec | ||
| ) |
Definition at line 307 of file Socket.cpp.
| bool Socket::WaitData | ( | size_t | millisec | ) |
Definition at line 283 of file Socket.cpp.
bool Socket::accepting [protected] |
bool Socket::broken_pipe [protected] |
char* Socket::host [protected] |
sockaddr_in Socket::m_addr [private] |
int Socket::m_sock [private] |
bool Socket::outputErrors [protected] |
int Socket::port [protected] |
fd_set Socket::rfs [private] |
bool Socket::server [protected] |