Barracuda Application Server C/C++ Reference
HttpConnection Struct Reference

Detailed Description

Contains information about the physical socket connection.

This object is used internally by HttpServer when sending and receiving data on either an insecure or secure SSL connection.

#include <HttpConnection.h>

Inheritance diagram for HttpConnection:

Public Member Functions

struct HttpServergetServer ()
 Fetch the HttpServer object.
void setKeepAlive ()
 Close connection after request completed.
void clearKeepAlive ()
 Keep connection after request completed, i.e. More...
- Public Member Functions inherited from SoDispCon
int connect (const char *host, U16 port, const void *bindIntfName=0, U16 bindPort=0, U32 timeout=1500, BaBool dgram=false, BaBool ipv6=false, char **errinfo=0)
 Connect to host/IP address. More...
bool isSecure ()
 Deprecated: Use getSharkSslCon(NULL).
bool getSharkSslCon (SharkSslCon **sc)
 Returns true if this is an SSL connection. More...
bool isValid ()
 Returns true if the socket connection is valid.
bool isIP6 ()
 Returns true if this is an IP version 6 connection.
int getPeerName (HttpSockaddr *addr, U16 *port=0)
 Returns the 'peer' IP address. More...
int getSockName (HttpSockaddr *addr, U16 *port=0)
 Returns the 'sock' IP address. More...
char * addr2String (HttpSockaddr *addr, char *buf, int len)
 Converts IP address to string.
bool cmpAddr (HttpSockaddr *addr2)
 Compare addr with address returned by getPeerName.
void setTCPNoDelay (bool enable)
 Disable the TCP delay. More...
struct SoDispgetDispatcher ()
 Fetch the SoDisp object.
bool hasMoreData ()
 Returns true if more data on the socket.
bool dispatcherHasCon ()
 Returns true if connection is in the SoDisp object.
bool recEvActive ()
 Returns true if the connection is active in the SoDisp object.
bool sendEvActive ()
 Used for non blocking send.

Member Function Documentation

◆ clearKeepAlive()

void HttpConnection::clearKeepAlive ( )

Keep connection after request completed, i.e.

a persistent 1.1 connection.