From 1702177307141a7b5c7ac7b90fc9093cc96495dd Mon Sep 17 00:00:00 2001 From: Naim A Date: Sun, 18 Aug 2013 03:22:30 +0300 Subject: [PATCH] Minor changes, README upddated (finally...) --- README | 39 ++++++++++++++++++++++----------------- src/main.cpp | 2 +- src/multiplatform.h | 15 ++++++++++----- 3 files changed, 33 insertions(+), 23 deletions(-) diff --git a/README b/README index 5110a8f..90e2646 100644 --- a/README +++ b/README @@ -1,23 +1,28 @@ -README for the UDPT project. +What is UDPT? +The UDPT project is a BitTorrent Tracking software. +It uses the UDP protocol (instead of the HTTP protocol) to track +peers downloading the same software. UDPT was written according +to BEP 15 of the BitTorrent standard. -Licensed under GNU GPLv3. -The license file is attached under the name gpl.txt. +Who Wrote UDPT, and when? +UDPT is an ongoing project (at the meantime), it's development +started on Nevember 20th, 2012. +It was written by Naim A. . Naim wrote this +program for fun in his free time. -Compiling under linux or linux environment (MinGW): +Required Software: +UDPT depends on SQLite3 (public-domain, compatible with GPL). +UDPT's source is designed to be platform portable. It is +supported with Windows and with Linux based systems, It should +work with Apple's systems but it might not (no officially supported). -For Windows (with Linux environment): -$ make win32 +I need help using this software, what should I do? +You may want to visit the documentation at the projects's site. +Address: http://code.google.com/p/udpt -For Linux: -$ make linux +Can I suggest a feature or report a bug? +Yes, you can. Please submit a feature request at: +http://code.google.com/p/udpt/issues -Running: -$ ./udpt - -Cleaning: -$ make clean - -This software currently uses the Sqlite3 Library (public domain). - -Developed by Naim A. . +Please visit http://code.google.com/p/udpt for updates. diff --git a/src/main.cpp b/src/main.cpp index 67ba4fc..86c923a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -147,7 +147,7 @@ int main(int argc, char *argv[]) WSAStartup(MAKEWORD(2, 2), &wsadata); #endif - cout << "UDP Tracker (UDPT) " << VERSION << endl; + cout << "UDP Tracker (UDPT) " << VERSION << " (" << PLATFORM << ")" << endl; cout << "Copyright 2012,2013 Naim Abda \n\tReleased under the GPLv3 License." << endl; cout << "Build Date: " << __DATE__ << endl << endl; diff --git a/src/multiplatform.h b/src/multiplatform.h index bc2b18d..e03f9be 100644 --- a/src/multiplatform.h +++ b/src/multiplatform.h @@ -28,10 +28,11 @@ #define linux #endif +#define VERSION "1.0.0-beta" + #ifdef WIN32 #include #include -#define VERSION "1.0.0-beta (Windows)" #elif defined (linux) #include #include @@ -54,10 +55,14 @@ typedef void* LPVOID; typedef void (LPTHREAD_START_ROUTINE)(LPVOID); typedef pthread_t HANDLE; -#define VERSION "1.0.0-beta (Linux)" #endif -#ifdef __APPLE__ -#undef VERSION -#define VERSION "1.0.0-beta (Apple)" +#ifdef WIN32 +#define PLATFORM "Windows" +#elif defined (__APPLE__) +#define PLATFORM "Apple" +#elif defined (__CYGWIN__) +#define PLATFORM "Cygwin" +#else +#define PLATFORM "Linux" #endif