Skip to content

Commit

Permalink
read loop
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasinsaurralde committed Jun 9, 2014
1 parent 8570f5f commit fbbd0d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions facebook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ void FacebookClient::sendPacketTo( double someFriendID, const char* payload, int
/* mostly server stuff */

void FacebookClient::listClients() {
std::cout << "listCLients()" << std::endl;
cleanup();

char url[ DEFAULT_URL_SIZE ];
Expand All @@ -379,4 +380,5 @@ void FacebookClient::listClients() {
};

void FacebookClient::readPacketsFrom( double someFriendID ) {
std::cout << "readPacketsFrom" << std::endl;
};
5 changes: 4 additions & 1 deletion tun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ void Tun::keepWriting() {

void Tun::keepReading() {
this->facebook->listClients();
// for ( ;; ) { };
double sampleThread = 349370745200979;
for(;;) {
this->facebook->readPacketsFrom( sampleThread );
};
};

void Tun::run() {
Expand Down

0 comments on commit fbbd0d6

Please sign in to comment.