Back to Browse

Socket Programming in C/C++ (Basics of socket programming before you start the actual coding)

98.0K views
Feb 17, 2020
18:12

Basics about socket (merely a file descriptor opened over the network to read and write over a channel). Stream sockets, datagram sockets, Big Endian and Little Endian format of byte orders. This video also discuss about the network byte order and host byte order and it's significance in socket programming. The stream sockets are connection oriented sockets which uses cyclic redundancy check to ensure the guaranteed delivery of the packets to the other end (uses TCP/IP). IP is for packet routing and not for the data integrity. TCP handles the data integrity things!! Every socket opened has an associated kernel object which manages the communication channel (compare it with a file stream) to let it communicate over the network. Datagram sockets are used when the loss of few packets is OK like video calls .. The datagram sockets doesn't guarantee the delivery of packet but if packet delivered it will be error free and complete..The datagram packet also gets routed through IP but the delivery of packet follows the UDP and UDP doesn't have TCP like mechanism to ensure the data integrity!!

Download

0 formats

No download links available.

Socket Programming in C/C++ (Basics of socket programming before you start the actual coding) | NatokHD