///////////////////////////////////////////////////////
| 166 | |
| 167 | //////////////////////////////////////////////////////////// |
| 168 | Ftp::Response Ftp::connect(IpAddress server, unsigned short port, Time timeout) |
| 169 | { |
| 170 | if (server.isV6()) |
| 171 | { |
| 172 | err() << "FTP Error: Connecting to IPv6 servers is not supported" << std::endl; |
| 173 | return Response(Response::Status::ConnectionFailed); |
| 174 | } |
| 175 | |
| 176 | // Connect to the server |
| 177 | if (m_commandSocket.connect(server, port, timeout) != Socket::Status::Done) |
| 178 | return Response(Response::Status::ConnectionFailed); |
| 179 | |
| 180 | // Get the response to the connection |
| 181 | return getResponse(); |
| 182 | } |
| 183 | |
| 184 | |
| 185 | //////////////////////////////////////////////////////////// |
no test coverage detected