Assignment to create/close socket connection using new Socket Connection Library. Socket Connection libraries has to create for Windows and Linux. Below provided steps to create libraries for Windows and Linux. In this assignment MAC not tested because oflack of MAC enviroment. Aim is to generate the ELF with corresponding libaries and produce the executable. At the compilation library has to link and exection will takesplace accordingly.
- File -> New -> Project -> Win32 Console Project -> Application Settings (Static Library) -> Finis
- Go to Solution Explorer -> copy window/stdafx.cpp in 'Source Files' directory
- Go to Solution Explorer -> copy window/stdafx.h and windows/socket-connection.h in 'Header Files' directory
- Build -> Build Solution
- Static Libary will be created ( .lib )
- File -> New -> Project -> Empty Project
- Go to Solution Explorer -> copy server.cpp in 'Source Files' directory
- Properties -> Linker -> Input -> Addtional Dependencies -> Edit
- Add Ws2_32.lib
- Add .lib
- Properties -> Configuration Properties -> VC++ Directories -> General -> Include Directories
- Add path of windows/socket-connection.h path
- Properties -> Configuration Properties -> VC++ Directories -> General -> Library Directories
- Add path of Library got from Step 4
- Build -> Build Solution
- Debug -> Start without Debugging
- Run CompileLinux.sh
- ./linux-out