Commit c2825e86 authored by Davis King's avatar Davis King

Moved function definitions into cpp files and also updated the server_http's

spec appropriately.
parent 5e7303a3
......@@ -38,6 +38,9 @@
#include "../sockets/sockets_kernel_2.cpp"
#include "../sockstreambuf/sockstreambuf_kernel_1.cpp"
#include "../sockstreambuf/sockstreambuf_kernel_2.cpp"
#include "../server/server_kernel.cpp"
#include "../server/server_iostream.cpp"
#include "../server/server_http.cpp"
#include "../threads/multithreaded_object_extension.cpp"
#include "../threads/threaded_object_extension.cpp"
#include "../threads/threads_kernel_1.cpp"
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
// Copyright (C) 2003 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#ifndef DLIB_SERVER_IOSTREAM_CPp_
#define DLIB_SERVER_IOSTREAM_CPp_
#include "server_iostream.h"
namespace dlib
{
const logger server_iostream::dlog("dlib.server_iostream");
}
#endif // DLIB_SERVER_IOSTREAM_CPp_
......@@ -143,10 +143,13 @@ namespace dlib
};
const logger server_iostream::dlog("dlib.server");
}
#ifdef NO_MAKEFILE
#include "server_iostream.cpp"
#endif
#endif // DLIB_SERVER_IOSTREAm_1_
......
......@@ -12,17 +12,11 @@
namespace dlib
{
template <
typename server_base
>
class server_iostream : public server_base
class server_iostream : public server
{
/*!
REQUIREMENTS ON server_base
is an implementation of server/server_kernel_abstract.h
WHAT THIS EXTENSION DOES FOR SERVER
WHAT THIS EXTENSION DOES FOR server
This extension redefines the on_connect() function so that
instead of giving you a connection object you get an istream
and ostream object.
......
This diff is collapsed.
This diff is collapsed.
......@@ -3,7 +3,6 @@
#undef DLIB_SERVER_KERNEL_ABSTRACT_
#ifdef DLIB_SERVER_KERNEL_ABSTRACT_
// non-templatable dependencies
#include "../threads/threads_kernel_abstract.h"
#include "../sockets/sockets_kernel_abstract.h"
#include <string>
......@@ -11,8 +10,6 @@
namespace dlib
{
class server
{
......@@ -245,8 +242,6 @@ namespace dlib
- std::bad_alloc
!*/
private:
virtual void on_connect (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment