• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

UglyLogStubs.cc

Go to the documentation of this file.
00001 /** @file
00002 
00003     A brief file description
00004 
00005     @section license License
00006 
00007     Licensed to the Apache Software Foundation (ASF) under one
00008     or more contributor license agreements.  See the NOTICE file
00009     distributed with this work for additional information
00010     regarding copyright ownership.  The ASF licenses this file
00011     to you under the Apache License, Version 2.0 (the
00012     "License"); you may not use this file except in compliance
00013     with the License.  You may obtain a copy of the License at
00014 
00015     http://www.apache.org/licenses/LICENSE-2.0
00016 
00017     Unless required by applicable law or agreed to in writing, software
00018     distributed under the License is distributed on an "AS IS" BASIS,
00019     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00020     See the License for the specific language governing permissions and
00021     limitations under the License.
00022 */
00023 
00024 
00025 
00026 // This is total BS, because our libraries are riddled with cross dependencies.
00027 // TODO: Clean up the dependency mess, and get rid of this.
00028 
00029 #include "libts.h"
00030 #include "LogObject.h"
00031 
00032 #if defined(solaris)
00033 #include <sys/types.h>
00034 #include <unistd.h>
00035 #endif
00036 
00037 #include "P_Net.h"
00038 
00039 int fds_limit = 8000;
00040 
00041 class FakeUDPNetProcessor : public UDPNetProcessor {
00042   virtual int start(int, size_t) {
00043     ink_release_assert(false);
00044     return 0;
00045   };
00046 } fakeUDPNet;
00047 
00048 UDPNetProcessor& udpNet = fakeUDPNet;
00049 
00050 ClassAllocator<UDPPacketInternal> udpPacketAllocator("udpPacketAllocator");
00051 
00052 void
00053 UDPConnection::Release()
00054 {
00055   ink_release_assert(false);
00056 }
00057 
00058 #include "InkAPIInternal.h"
00059 ConfigUpdateCbTable *global_config_cbs = NULL;
00060 
00061 void
00062 ConfigUpdateCbTable::invoke(const char * /* name ATS_UNUSED */)
00063 {
00064   ink_release_assert(false);
00065 }
00066 
00067 struct Machine {  static Machine* instance(); };
00068 Machine* Machine::instance() {
00069   ink_release_assert(false);
00070   return NULL;
00071 }
00072 
00073 #include "LogCollationAccept.h"
00074 LogCollationAccept::LogCollationAccept(int port)
00075   : Continuation(new_ProxyMutex()),
00076     m_port(port),
00077     m_pending_event(NULL)
00078 {
00079 }
00080 LogCollationAccept::~LogCollationAccept()
00081 {
00082 }
00083 
00084 #include "LogCollationClientSM.h"
00085 LogCollationClientSM::LogCollationClientSM(LogHost * log_host):
00086   Continuation(new_ProxyMutex()),
00087   m_host_vc(NULL),
00088   m_host_vio(NULL),
00089   m_auth_buffer(NULL),
00090   m_auth_reader(NULL),
00091   m_send_buffer(NULL),
00092   m_send_reader(NULL),
00093   m_pending_action(NULL),
00094   m_pending_event(NULL),
00095   m_abort_vio(NULL),
00096   m_abort_buffer(NULL),
00097   m_buffer_send_list(NULL), m_buffer_in_iocore(NULL), m_flow(LOG_COLL_FLOW_ALLOW), m_log_host(log_host), m_id(0)
00098 {
00099 }
00100 
00101 LogCollationClientSM::~LogCollationClientSM()
00102 {
00103 }
00104 
00105 int
00106 LogCollationClientSM::send(LogBuffer * /* log_buffer ATS_UNUSED */)
00107 {
00108   ink_release_assert(false);
00109   return 0;
00110 }
00111 
00112 NetAccept *
00113 UnixNetProcessor::createNetAccept()
00114 {
00115   ink_release_assert(false);
00116   return NULL;
00117 }
00118 
00119 // TODO: The following was necessary only for Solaris, should examine more.
00120 NetVCOptions const Connection::DEFAULT_OPTIONS;
00121 NetProcessor::AcceptOptions const NetProcessor::DEFAULT_ACCEPT_OPTIONS;
00122 DNSConnection::Options const DNSConnection::DEFAULT_OPTIONS;
00123 
00124 // TODO: This is even uglier, this actually gets called here when "defined".
00125 NetProcessor::AcceptOptions&
00126 NetProcessor::AcceptOptions::reset()
00127 {
00128   local_port = 0;
00129   accept_threads = 0;
00130   ip_family = AF_INET;
00131   etype = ET_NET;
00132   f_callback_on_open = false;
00133   recv_bufsize = 0;
00134   send_bufsize = 0;
00135   sockopt_flags = 0;
00136   packet_mark = 0;
00137   packet_tos = 0;
00138   f_inbound_transparent = false;
00139   return *this;
00140 }
00141 
00142 // These are for clang / llvm
00143 int
00144 CacheVC::handleWrite(int /* event ATS_UNUSED */, Event * /* e ATS_UNUSED */)
00145 {
00146   return 0;
00147   ink_release_assert(false);
00148 }
00149 
00150 UnixNetProcessor unix_netProcessor;
00151 NetProcessor& netProcessor = unix_netProcessor;
00152 
00153 int
00154 UnixNetProcessor::start(int, size_t)
00155 {
00156   ink_release_assert(false);
00157   return 0;
00158 }
00159 
00160 Action *
00161 NetProcessor::accept(Continuation* /* cont ATS_UNUSED */, AcceptOptions const& /* opt ATS_UNUSED */)
00162 {
00163   ink_release_assert(false);
00164   return NULL;
00165 }
00166 
00167 Action *
00168 NetProcessor::main_accept(Continuation * /* cont ATS_UNUSED */, SOCKET /* fd ATS_UNUSED */,
00169                           AcceptOptions const& /* opt ATS_UNUSED */)
00170 {
00171   ink_release_assert(false);
00172   return NULL;
00173 }
00174 
00175 Action *
00176 UnixNetProcessor::accept_internal(Continuation * /* cont ATS_UNUSED */, int /* fd ATS_UNUSED */,
00177                                   AcceptOptions const& /* opt ATS_UNUSED */)
00178 {
00179   ink_release_assert(false);
00180   return NULL;
00181 }
00182 
00183 NetVConnection *
00184 UnixNetProcessor::allocate_vc(EThread *)
00185 {
00186   ink_release_assert(false);
00187   return NULL;
00188 }
00189 
00190 // For Intel ICC
00191 int cache_config_mutex_retry_delay = 2;
00192 
00193 #include "I_SplitDNSProcessor.h"
00194 void
00195 SplitDNSConfig::reconfigure()
00196 {
00197 }
00198 
00199 ClassAllocator<CacheRemoveCont> cacheRemoveContAllocator("cacheRemoveCont");
00200 
00201 CacheHostTable::CacheHostTable(Cache * /* c ATS_UNUSED */, CacheType /* typ ATS_UNUSED */)
00202 {
00203 }
00204 
00205 CacheHostTable::~CacheHostTable() { }

Generated by  doxygen 1.7.1