Socket Programming in C/C++ Part - 7 (accepting the new connections)

preview_player
Показать описание
Socket Programming in C/C++.
In this video I have discussed about the accept system call. Accept system call can be used to accept the new connection request by the client. The accept call returns a new socket descriptor on which server gets the new service requests over the network and further communication with client only takes place using that socket only.
Рекомендации по теме
Комментарии
Автор

To see the client code, you need to visit part 6 of this playlist

vartetalearningplatform
Автор

This video is missing from "Socket Programming in C/C++" playlist, just letting you know!

bruhzydosodai
Автор

Please can you give us a the code source.I write the same thing but i find mistakes in my code .I didn't get the same answer you get

kaoutariabakriman
Автор

There is a syntax mistake on the select method. The first parameter is the highest-numbered file descriptor in any of the three sets, plus 1.

Therefore it should be select(nMaxFd + num_of_clients + 1, &fr, &fw, &fe, &tv);

MidhunDarvin
Автор

after performing select.
why don't we loop over fr, which contains the client sockets?
why do we perform new loop 5 times using accept?

naoryehuda
Автор

Please upload a video which explains how to get server IP and port on client side

gajendraranawat
Автор

can I get full code of this video in document

RudreshG.S
Автор

the loop keeps on running and no communication is performed between them

humayunnaveedkhan
Автор

I followed the playlist until this point. This video is disappointing. You don't show the client code with us to share what is going on and how the client/server thing is actually working and the modifications you made on the while loop so that the app doesn't close itself if it doesn't listen to anything and nothing is coming through the port. Sorry, not following it anymore and not recommending this playlist to anybody. You are the most confusing person that teaches this thing.

sebastianionel
welcome to shbcf.ru