View Single Post
  #20   Spotlight this post!  
Unread 01-09-2014, 16:51
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: FRC Java TCP client

The web server implementation was extremely simple. If you noticed, I am using DLib. DLib adds some of the simplest socket APIs you could imagine!

PHP Code:
class web_server : public server_http
{
    const 
std::string on_request(const incoming_thingsincomingoutgoing_thingsoutgoing)
    {
        return 
"<html><body><h1>Hello World!</h1></body></html>";
    }
}; 
I used this, plus a bunch of HTML + CSS + JavaScript skills to make this. I think I should make a new thread about this software because it is something that many teams might want for communications. The main problem is speed, but it has an extremely vast feature set!