MCPcopy Create free account
hub / github.com/SFML/SFML / connect

Method connect

src/SFML/Network/Ftp.cpp:168–182  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

166
167////////////////////////////////////////////////////////////
168Ftp::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////////////////////////////////////////////////////////////

Callers 10

TcpSocket.test.cppFile · 0.45
Sftp.test.cppFile · 0.45
sendRequestMethod · 0.45
openMethod · 0.45
runTcpClientFunction · 0.45
onStartMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 1

isV6Method · 0.80

Tested by

no test coverage detected