X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/65bf2eef7ac487329a3af3cd1c06e7957afc3a6c..eb72ddd1b0a1004fa3da51db5b7790370cc5c2e9:/Server/src/server.cpp diff --git a/Server/src/server.cpp b/Server/src/server.cpp index bbf41c0..81285cb 100644 --- a/Server/src/server.cpp +++ b/Server/src/server.cpp @@ -25,25 +25,49 @@ // $Id$ // -#include "server.h" +#include "plaqui/server/server.h" +#ifdef DEBUG +# include +#endif // DEBUG -using namespace Plaqui; +PlaQui::Server::Server::~Server(void) { +#ifdef DEBUG + std::cerr << __FILE__ << ": destructor." << std::endl; +#endif // DEBUG +} -Server::Server(int port): - socket(sockbuf::sock_stream) { -#warning Not implemented! - // TODO +PlaQui::Server::Server::Server(int port): + PlaQui::Server::Server::TCPServer(port) { +#ifdef DEBUG + std::cerr << __FILE__ << ": port = " << port << std::endl; +#endif // DEBUG } -bool Server::start_transmission(std::string host, int port) { -#warning Not implemented! +/// \todo Implementar. +bool PlaQui::Server::Server::start_transmission(std::string host, int port) { +#ifdef DEBUG + std::cerr << __FILE__ << ": start_transmission(host = " << host + << " | port = " << port << ")" << std::endl; +#endif // DEBUG // TODO return false; } -bool Server::stop_transmission(std::string host, int port) { -#warning Not implemented! +/// \todo Implementar. +bool PlaQui::Server::Server::stop_transmission(std::string host, int port) { +#ifdef DEBUG + std::cerr << __FILE__ << ": stop_transmission(host = " << host + << " | port = " << port << ")" << std::endl; +#endif // DEBUG // TODO return false; } +/// \todo Implementar. +void PlaQui::Server::Server::on_control_command_received(void* command) { +#ifdef DEBUG + std::cerr << __FILE__ << ": on_control_command_received(command = " + << command << ")" << std::endl; +#endif // DEBUG +} +