- bugfixes for ftp server to work on windows, silly M$ compiler has issues with mixing C / C++ code so I had to make these changes

This commit is contained in:
Mark Vejvoda
2010-12-31 21:00:25 +00:00
parent 9b3e921888
commit 1f29685803
6 changed files with 129 additions and 14 deletions

View File

@@ -36,6 +36,11 @@
*/
LOCAL socket_t server;
void ftpInit(ftpFindExternalFTPServerIpType cb1, ftpAddUPNPPortForwardType cb2, ftpRemoveUPNPPortForwardType cb3) {
ftpFindExternalFTPServerIp = cb1;
ftpAddUPNPPortForward = cb2;
ftpRemoveUPNPPortForward = cb3;
}
/**
* @brief Initializes and starts the server
@@ -48,7 +53,6 @@ int ftpStart(int portNumber)
{
server = -1; // set server socket to invalid value
if(VERBOSE_MODE_ENABLED) printf("Feathery FTP-Server\n");
ftpArchInit();