17 #ifndef _DECAF_INTERNAL_NET_TCP_TCPSOCKET_H_ 18 #define _DECAF_INTERNAL_NET_TCP_TCPSOCKET_H_ 70 bool isConnected()
const;
75 bool isClosed()
const;
80 virtual std::string getLocalAddress()
const;
85 virtual void create();
90 virtual void accept(SocketImpl* socket);
95 virtual void bind(
const std::string& ipaddress,
int port);
100 virtual void connect(
const std::string& hostname,
int port,
int timeout);
105 virtual void listen(
int backlog);
120 virtual int available();
125 virtual void close();
130 virtual void shutdownInput();
135 virtual void shutdownOutput();
140 virtual int getOption(
int option)
const;
145 virtual void setOption(
int option,
int value);
167 int read(
unsigned char* buffer,
int size,
int offset,
int length);
185 void write(
const unsigned char* buffer,
int size,
int offset,
int length);
189 void checkResult(apr_status_t value)
const;
Platform-independent implementation of the socket interface.
Definition: TcpSocket.h:43
Acts as a base class for all physical Socket implementations.
Definition: SocketImpl.h:42
#define DECAF_API
Definition: Config.h:29
Base interface for any class that wants to represent an output stream of bytes.
Definition: OutputStream.h:39
Output stream for performing write operations on a socket.
Definition: TcpSocketOutputStream.h:37
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25