#include <MySocketTCP.h>
Public Member Functions | |
| MySocketTCP (const char *const host_ip_or_name, unsigned short int const port_number) | |
| MySocketTCP (unsigned short int const port_number) | |
| ~MySocketTCP () | |
| int | getHostname (char *name) |
| int | getPortNumber () |
| int | getErrorStatus () |
| int | Connect () |
| void | Disconnect () |
| int | SendData (void *buf, int length) |
| int | ReceiveData (void *buf, int length) |
| int | SendDataAndKeepConnection (void *buf, int length) |
| int | ReceiveDataAndKeepConnection (void *buf, int length) |
| int | SendDataOnly (void *buf, int length) |
| int | ReceiveDataOnly (void *buf, int length) |
Private Attributes | |
| char | hostname [1000] |
| int | portno |
| int | is_a_server |
| int | socketDescriptor |
| sockaddr_in clientAddress | serverAddress |
| socklen_t | clientAddress_length |
| int | file_des |
| int | send_rec_max_size |
| bool | last_keep_connection_open_action_was_a_send |
| MySocketTCP::MySocketTCP | ( | const char *const | host_ip_or_name, | |
| unsigned short int const | port_number | |||
| ) |
| MySocketTCP::MySocketTCP | ( | unsigned short int const | port_number | ) |
| MySocketTCP::~MySocketTCP | ( | ) |
| int MySocketTCP::Connect | ( | ) |
| void MySocketTCP::Disconnect | ( | ) |
| int MySocketTCP::getErrorStatus | ( | ) | [inline] |
| int MySocketTCP::getHostname | ( | char * | name | ) |
| int MySocketTCP::getPortNumber | ( | ) | [inline] |
| int MySocketTCP::ReceiveData | ( | void * | buf, | |
| int | length | |||
| ) |
| int MySocketTCP::ReceiveDataAndKeepConnection | ( | void * | buf, | |
| int | length | |||
| ) |
| int MySocketTCP::ReceiveDataOnly | ( | void * | buf, | |
| int | length | |||
| ) |
| int MySocketTCP::SendData | ( | void * | buf, | |
| int | length | |||
| ) |
| int MySocketTCP::SendDataAndKeepConnection | ( | void * | buf, | |
| int | length | |||
| ) |
| int MySocketTCP::SendDataOnly | ( | void * | buf, | |
| int | length | |||
| ) |
socklen_t MySocketTCP::clientAddress_length [private] |
int MySocketTCP::file_des [private] |
char MySocketTCP::hostname[1000] [private] |
int MySocketTCP::is_a_server [private] |
bool MySocketTCP::last_keep_connection_open_action_was_a_send [private] |
int MySocketTCP::portno [private] |
int MySocketTCP::send_rec_max_size [private] |
struct sockaddr_in clientAddress MySocketTCP::serverAddress [private] |
int MySocketTCP::socketDescriptor [private] |
1.4.7