Creating a TCP Server in C++ [Linux / Code Blocks]

preview_player
Показать описание
#sockets #linux #tcpip #networking

This is an introduction to network programming by building a server that echos the client's messages back. The server is written in C++.

Source Code
-----------
Рекомендации по теме
Комментарии
Автор

Hey sloan... Thanks for this amazing video.. I am a beginner in socket programming. I learnt a lot from you. Thank you once again... Any compliment of mine can't fully appreciate your last lines.. "Information should be free"... That's how we build ourselves and everyone around us...

rahulsinghgulia
Автор

Thank you for teaching this, Mr. Kelly. I am working on a terminal chat client as a feature for a command line game that I built for school. Looking forward to watching more of your tutorials!

crenshawpty
Автор

I agree with last comment. When teaching the basics, just stick to the calls required and no tarting it all up in OOD or OOP, just teach whats required and then let the reader decide what to do next. All very straight forward and clear.

michaelhex
Автор

Great walkthrough, helped me immensely!

nickcollins
Автор

I have just learned TCP, thank you very much. It's really helpful

minhhuyvunguyen
Автор

Love from Brazil. Thank you for shared your learned with us 🎉

luisfernando
Автор

Thanks for a great video. I was able to follow along at home but still have some questions about the socket commands. I'll look for your other video.

crashtestpilot
Автор

Very nice, just saw you uploaded this, i'm gonna have to watch this when i get the time. Thanks for making this video :-)

xetop
Автор

I have really enjoyed this tutorial. Thank you very much

gastongp
Автор

Brilliant! I cheered like a little kid when this worked on my VM!!

Auron
Автор

36:08
you just had to scroll down a little bit on the center page there and there would have been a link to the project you where recently editing :)

logangraham
Автор

Excuse me sir, @ 23:17: if we are closing the socket immediately, how can client connect to it ? apologise for the noob question; fresher into c++ and sockets

Irshu
Автор

Awesome video which helped me to complete my project. Thank you. Is it a C64 behind you? :)

ozgurkarter
Автор

I did copy your code and it works. But when I added to condition to break from last while when it receive "shutdown" string, then it does exit, but it doesn't start again. Like port is still blocked.
Do I need to do anything else than close(clientSocket); to force end of comunication from server side ?

peterSobieraj
Автор

i can connect to server using telnet but when i connect using ssh (ssh -4 192.168.x.y port=540000), i am unable to get connected and ssh does not give me any error

vineetkumar
Автор

Amazing series. When is the client part coming for linux?

guyma
Автор

Can we connect a different pc running a c++ program to this server. If yes how please

easynavigation
Автор

That's why linux is much more easy to program :)

HeitorYT
Автор

Is there any book can you refer for socket programming beginners(especially for C++)?

pcpardon
Автор

thanks much master but i'm still needing the same source code but it should copmiled as .exe (windows) plz sir

ABDO_DZ
welcome to shbcf.ru