![]() |
Beaming Scene Service
2.0
RakNet wrapper for managing data communications between multiple Beaming clients
|
#include "TCPInterface.h"
#include "HTTPConnection.h"
#include "PHPConnections.h"
#include "RakSleep.h"
#include "RakString.h"
#include "GetTime.h"
#include "DS_Table.h"
#include <cstring>
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <stdio.h>
#include "Kbhit.h"
#include "Getche.h"
#include "client.h"
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
Go to the source code of this file.
Enumerations | |
enum | ReadResultEnum { RR_EMPTY_TABLE, RR_READ_TABLE, RR_TIMEOUT } |
Functions | |
ReadResultEnum | ReadResult (RakNet::RakString &httpResult) |
bool | HaltOnUnexpectedResult (ReadResultEnum result, ReadResultEnum expected) |
void | DownloadTable () |
void | UploadTable (RakNet::RakString clientName, unsigned short clientPort) |
void | UploadAndDownloadTable (RakNet::RakString clientName, unsigned short clientPort) |
bool | PassTestOnEmptyDownloadedTable () |
bool | VerifyDownloadMatchesUpload (int requiredRowCount, int testRowIndex) |
void | PrintHttpResult (RakNet::RakString httpResult) |
void | PrintFieldColumns (void) |
bool | RunTest () |
void | OutputBody (HTTPConnection &http, const char *path, const char *data, TCPInterface &tcp) |
int | main (int argc, char **argv) |
Variables | |
TCPInterface * | tcp |
HTTPConnection * | httpConnection |
PHPConnections * | phpConnections |
enum ReadResultEnum |
Definition at line 42 of file phpClient.cpp.
void DownloadTable | ( | ) |
Definition at line 132 of file phpClient.cpp.
bool HaltOnUnexpectedResult | ( | ReadResultEnum | result, |
ReadResultEnum | expected | ||
) |
Definition at line 93 of file phpClient.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 404 of file phpClient.cpp.
void OutputBody | ( | HTTPConnection & | http, |
const char * | path, | ||
const char * | data, | ||
TCPInterface & | tcp | ||
) |
bool PassTestOnEmptyDownloadedTable | ( | ) |
Definition at line 144 of file phpClient.cpp.
void PrintFieldColumns | ( | void | ) |
Definition at line 226 of file phpClient.cpp.
void PrintHttpResult | ( | RakNet::RakString | httpResult | ) |
Definition at line 221 of file phpClient.cpp.
ReadResultEnum ReadResult | ( | RakNet::RakString & | httpResult | ) |
Definition at line 49 of file phpClient.cpp.
bool RunTest | ( | ) |
Definition at line 237 of file phpClient.cpp.
void UploadAndDownloadTable | ( | RakNet::RakString | clientName, |
unsigned short | clientPort | ||
) |
Definition at line 140 of file phpClient.cpp.
void UploadTable | ( | RakNet::RakString | clientName, |
unsigned short | clientPort | ||
) |
Definition at line 136 of file phpClient.cpp.
bool VerifyDownloadMatchesUpload | ( | int | requiredRowCount, |
int | testRowIndex | ||
) |
Definition at line 156 of file phpClient.cpp.
HTTPConnection* httpConnection |
Definition at line 39 of file phpClient.cpp.
Definition at line 40 of file phpClient.cpp.
TCPInterface* tcp |
phpClient.cpp This client acts as a gateway, in that it simply connects to the server and sends information to the php webpage
Contact Wole Oyekoya <w.oyekoya@cs.ucl.ac.uk> for any queries
Include client.h
Definition at line 38 of file phpClient.cpp.