Examples of using a ClientSocket.
#include <sys/socket.h>
#include <vector>
#include <string>
#include <memory>
int main(int argc, char** argv) {
client->connect();
return 0;
}
static ClientSocket::Ptr create(std::shared_ptr< Address > theAddress)
std::shared_ptr< ClientSocket > Ptr
std::shared_ptr< InetAddress > Ptr
static int create(SocketType socketType, const std::string &serviceName, const std::string &address, std::vector< InetAddress::Ptr > &created, unsigned int max=0)
Namespace of the BsdSockets library.