17#ifndef _DECAF_NET_SOCKETFACTORY_H_
18#define _DECAF_NET_SOCKETFACTORY_H_
Represents an IP address.
Definition: InetAddress.h:33
The SocketFactory is used to create Socket objects and can be sub-classed to provide other types of S...
Definition: SocketFactory.h:39
virtual Socket * createSocket(const std::string &host, int port)=0
Creates a new Socket object and connects it to the specified remote host and port using the configura...
virtual Socket * createSocket(const std::string &host, int port, const InetAddress *ifAddress, int localPort)=0
Creates a new Socket object and connects it to the specified remote host and port using the configura...
static SocketFactory * getDefault()
Returns an pointer to the default SocketFactory for this Application, there is only one default Socke...
virtual Socket * createSocket()
Creates an unconnected Socket object.
virtual Socket * createSocket(const InetAddress *host, int port)=0
Creates a new Socket object and connects it to the specified remote host and port using the configura...
virtual Socket * createSocket(const InetAddress *host, int port, const InetAddress *ifAddress, int localPort)=0
Creates a new Socket object and connects it to the specified remote host and port using the configura...
#define DECAF_API
Definition: Config.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition: AprPool.h:25