17#ifndef _DECAF_NET_SOCKETFACTORY_H_
18#define _DECAF_NET_SOCKETFACTORY_H_
42 static SocketFactory* defaultFactory;
46 SocketFactory(
const SocketFactory& );
47 SocketFactory& operator= (
const SocketFactory& );
Represents an IP address.
Definition InetAddress.h:33
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
Definition URLStreamHandlerManager.h:26
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25