Skip to content

Here is Sample code of UDP and TCP of Socket programming in windows

Notifications You must be signed in to change notification settings

Abdeali099/SocketProgramingWindows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Link of YouTube video on this steps practical :- Click Here To See Practical

 If you find this helpful, then please like and subscribe. 

Steps to do Socket Programing in windows :-

Step 1 : Download Library (WS2_32.LIB) : https://osdn.net/projects/sfnet_hitcrawler/downloads/lib/WS2_32.LIB/

Step 2 : Download CodeBLocks IDE : https://sourceforge.net/projects/codeblocks/

Step 3 : Open CodeBlocks and Make 2 seprate Projects 1) For server 2) For Client

Step 3.1 : How to make project "File" >> "New" >> "Project" >> "Console Application" >> "Next" >> "C++" >> <Give Project Name & destination> >> "Next" >> "Finish"

Step 4 : Write Code and Build It.

Step 5 : Add liberary (Linker)

Step 5.1 : How to add : Right click on particular project >> "Build Option" >> "Linker setting" >> "Add" >> "Ok"

Step 6 : Rebulid both Project for doing same for both. (All error related to LIB get remove.)

Step 7 : Run Both project

Step 7.1 : How to run sepretly :-

Open Project destination in folder >> "bin" >> "debug" >> Open in cmd / Direct run

Step 8 : You have completed process !!

Other References :-

  1. https://learn.microsoft.com/en-us/windows/win32/winsock/disconnecting-the-client?source=recommendations

  2. https://armantutorial.wordpress.com/2014/07/23/winsock-tutorial-socket-programming-in-c-on-windows-using-codeblock/

  3. https://www.gta.ufrj.br/ensino/eel878/sockets/sockaddr_inman.html

  4. https://www.gta.ufrj.br/ensino/eel878/sockets/inet_ntoaman.html

About

Here is Sample code of UDP and TCP of Socket programming in windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages