//socket_(::FILE* fp) : _Base(fp){}
socket_(const socket_& from) : _Base(from), m_openparam(from.m_openparam) {}
socket_(const char* host, int port) /*: _Base(open_params_type(host, port))*/{
- create_socket();
- open(host, port);
+ //create_socket();
+ //open(host, port);
+ open(open_params_type(host, port));
}
socket_(const char* host, int port, int family, int socktype, int protocol) :
- /*_Base(open_params_type(host, port, socktype, family))*/{
- create_socket(family, socktype, protocol);
- open(host, port);
+ /*_Base(open_params_type(host, port, socktype, family))*/
+ {
+ //create_socket(family, socktype, protocol);
+ //open(host, port);
+ open(open_params_type(host, port, family, socktype, protocol));
}
virtual ~socket_(){}