Data Structures | Defines | Typedefs | Enumerations

HttpTunnel.h File Reference

A brief file description. More...

#include "libts.h"
#include "P_EventSystem.h"
Include dependency graph for HttpTunnel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ChunkedHandler
struct  HttpTunnelConsumer
struct  HttpTunnelProducer
class  PostDataBuffers
class  HttpTunnel
struct  HttpTunnel::FlowControl
 Data for implementing flow control across a tunnel.

Defines

#define MAX_PRODUCERS   2
#define MAX_CONSUMERS   4
#define HTTP_TUNNEL_EVENT_DONE   (HTTP_TUNNEL_EVENTS_START + 1)
#define HTTP_TUNNEL_EVENT_PRECOMPLETE   (HTTP_TUNNEL_EVENTS_START + 2)
#define HTTP_TUNNEL_EVENT_CONSUMER_DETACH   (HTTP_TUNNEL_EVENTS_START + 3)
#define HTTP_TUNNEL_STATIC_PRODUCER   (VConnection*)!0
#define ALLOCATE_AND_WRITE_TO_BUF   1
#define WRITE_TO_BUF   2

Typedefs

typedef int(HttpSM::* HttpSMHandler )(int event, void *data)
typedef int(HttpSM::* HttpProducerHandler )(int event, HttpTunnelProducer *p)
typedef int(HttpSM::* HttpConsumerHandler )(int event, HttpTunnelConsumer *c)

Enumerations

enum  HttpTunnelType_t {
  HT_HTTP_SERVER, HT_HTTP_CLIENT, HT_CACHE_READ, HT_CACHE_WRITE,
  HT_TRANSFORM, HT_STATIC
}
enum  TunnelChunkingAction_t { TCA_CHUNK_CONTENT, TCA_DECHUNK_CONTENT, TCA_PASSTHRU_CHUNKED_CONTENT, TCA_PASSTHRU_DECHUNKED_CONTENT }

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file HttpTunnel.h.


Define Documentation

#define ALLOCATE_AND_WRITE_TO_BUF   1

Definition at line 56 of file HttpTunnel.h.

#define HTTP_TUNNEL_EVENT_CONSUMER_DETACH   (HTTP_TUNNEL_EVENTS_START + 3)
#define HTTP_TUNNEL_EVENT_DONE   (HTTP_TUNNEL_EVENTS_START + 1)
#define HTTP_TUNNEL_EVENT_PRECOMPLETE   (HTTP_TUNNEL_EVENTS_START + 2)
#define HTTP_TUNNEL_STATIC_PRODUCER   (VConnection*)!0
#define MAX_CONSUMERS   4

Definition at line 47 of file HttpTunnel.h.

#define MAX_PRODUCERS   2

Definition at line 46 of file HttpTunnel.h.

#define WRITE_TO_BUF   2

Definition at line 57 of file HttpTunnel.h.


Typedef Documentation

typedef int(HttpSM::* HttpConsumerHandler)(int event, HttpTunnelConsumer *c)

Definition at line 67 of file HttpTunnel.h.

typedef int(HttpSM::* HttpProducerHandler)(int event, HttpTunnelProducer *p)

Definition at line 66 of file HttpTunnel.h.

typedef int(HttpSM::* HttpSMHandler)(int event, void *data)

Definition at line 62 of file HttpTunnel.h.


Enumeration Type Documentation

Enumerator:
HT_HTTP_SERVER 
HT_HTTP_CLIENT 
HT_CACHE_READ 
HT_CACHE_WRITE 
HT_TRANSFORM 
HT_STATIC 

Definition at line 69 of file HttpTunnel.h.

Enumerator:
TCA_CHUNK_CONTENT 
TCA_DECHUNK_CONTENT 
TCA_PASSTHRU_CHUNKED_CONTENT 
TCA_PASSTHRU_DECHUNKED_CONTENT 

Definition at line 79 of file HttpTunnel.h.