]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/src/server.cpp
Se corrige el bug encontrado por Nico.
[z.facultad/75.42/plaqui.git] / Server / src / server.cpp
index bbf41c029045fd8401a98c91237713cf9c20ee8f..81285cbe61fdabd24338cc250f578548999c1897 100644 (file)
 // $Id$
 //
 
 // $Id$
 //
 
-#include "server.h"
+#include "plaqui/server/server.h"
+#ifdef DEBUG
+#      include <iostream>
+#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;
 }
 
        // 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
        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
+}
+