OSDN Git Service

Bug fix
[ultramonkey-l7/ultramonkey-l7-v3.git] / l7vsd / src / virtualservice_udp.cpp
1 /*!
2  *    @file    virtualservice_udp.cpp
3  *    @brief    VirtualService class implementations for UDP
4  *
5  * L7VSD: Linux Virtual Server for Layer7 Load Balancing
6  * Copyright (C) 2009  NTT COMWARE Corporation.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  **********************************************************************/
24
25 #include <boost/date_time/posix_time/posix_time.hpp>
26
27 #include "virtualservice.h"
28
29 // implementation for virtualservice_udp
30 /*!
31  * virtualservice_udp class constructor.
32  */
33 l7vs::virtualservice_udp::virtualservice_udp(const l7vs::l7vsd &invsd,
34                 const l7vs::replication &inrep,
35                 const l7vs::virtualservice_element &inelement) :
36         l7vs::virtualservice_base(invsd, inrep, inelement) {}
37 l7vs::virtualservice_udp::~virtualservice_udp() {}
38
39 void    l7vs::virtualservice_udp::handle_replication_interrupt(const boost::system::error_code &in)
40 {
41 }
42 void    l7vs::virtualservice_udp::read_replicationdata()
43 {
44 }
45
46 void    l7vs::virtualservice_udp::initialize(l7vs::error_code &err)
47 {
48         err.setter(true, "");
49 }
50 void    l7vs::virtualservice_udp::finalize(l7vs::error_code &err)
51 {
52         err.setter(true, "");
53 }
54
55 bool    l7vs::virtualservice_udp::operator==(const l7vs::virtualservice_base &in)
56 {
57         return true;
58 }
59 bool    l7vs::virtualservice_udp::operator!=(const l7vs::virtualservice_base &in)
60 {
61         return true;
62 }
63
64 void    l7vs::virtualservice_udp::set_virtualservice(const l7vs::virtualservice_element &in, l7vs::error_code &err)
65 {
66         err.setter(true, "");
67 }
68 void    l7vs::virtualservice_udp::edit_virtualservice(const l7vs::virtualservice_element &in, l7vs::error_code &err)
69 {
70         err.setter(true, "");
71 }
72
73 void    l7vs::virtualservice_udp::add_realserver(const l7vs::virtualservice_element &in, l7vs::error_code &err)
74 {
75         err.setter(true, "");
76 }
77 void    l7vs::virtualservice_udp::edit_realserver(const l7vs::virtualservice_element &in, l7vs::error_code &err)
78 {
79         err.setter(true, "");
80 }
81 void    l7vs::virtualservice_udp::del_realserver(const l7vs::virtualservice_element &in, l7vs::error_code &err)
82 {
83         err.setter(true, "");
84 }
85
86 void    l7vs::virtualservice_udp::run() {}
87 void    l7vs::virtualservice_udp::stop() {}
88
89 void    l7vs::virtualservice_udp::release_session(const tcp_session *session_ptr) {}