FS#86 - Rewrite the sockets API

Updated the API documentation of the whole network module
The system headers are no longer included by the sfml-network public headers

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1475 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-03-23 09:39:43 +00:00
parent a09ee0f9e3
commit 9280771665
66 changed files with 3976 additions and 2992 deletions

View file

@ -90,7 +90,7 @@ int main()
case 1 :
{
// Print current server directory
// Print the current server directory
sf::Ftp::DirectoryResponse response = server.GetWorkingDirectory();
std::cout << response << std::endl;
std::cout << "Current directory is " << response.GetDirectory() << std::endl;
@ -99,11 +99,12 @@ int main()
case 2 :
{
// Print content of current server directory
// Print the contents of the current server directory
sf::Ftp::ListingResponse response = server.GetDirectoryListing();
std::cout << response << std::endl;
for (std::size_t i = 0; i < response.GetCount(); ++i)
std::cout << response.GetFilename(i) << std::endl;
std::vector<std::string> filenames = response.GetFilenames();
for (std::vector<std::string>::const_iterator it = filenames.begin(); it != filenames.end(); ++it)
std::cout << *it << std::endl;
break;
}
@ -123,7 +124,7 @@ int main()
std::string directory;
std::cout << "Name of the directory to create: ";
std::cin >> directory;
std::cout << server.MakeDirectory(directory) << std::endl;
std::cout << server.CreateDirectory(directory) << std::endl;
break;
}