TCP/IP Programming in C

preview_player
Показать описание

Socket Programming:
-Minimum Requirement.
-Linux OS [Lib. Header Files]
-IP & Port No.
-Server & Client Concept.
-Major steps.
-Server:
=Create a socket with the socket()
=Bind the socket to an address using the bind().
=Listen for connections with the listen().
=Accept a connection with the accept().
=Send and receive data, use the read() and write() system calls.

-Client:
=Create a socket with the socket()
=Connect the socket to the address of the server using the connect() system call.
=Send and receive data, use the read() and write() system calls.
-Server coding.
-Client coding.
-Running.
Рекомендации по теме
Комментарии
Автор

This is one of the most detailed tutorials I've seen on the subject, nice work!

bits_for_bytes
Автор

Thank you Prof. Vinod Pillai, This was such a great tutorial, I appreciate your help. Very useful. I hope that you can put more tutorials!

rodolforamirez
Автор

Simple solution is you consider that you want to transfer the content of the file from client to server/reverse or consider like open the file and read the data and send data to server.

vinodthebest
Автор

For a foreign youtuber, you speak very well.

underdog
Автор

Now I understand why i failed in Network Lab 😂 .. Thank you.. !! For the explanation of the program . This helps me a lot now😇

aiswaryatr
Автор

Very good tutorial on the basics of socket programming in the C language. Thanks Prof.

flimadkd
Автор

lient.c:31:12: error: expected ‘)’ before ‘h_addr_list’
if (sockfd h_addr, (char *)&serv_addr.sin_addr.s_addr, server->h_length); here shows error how to reslovethis

u.hemanthkumargowd
Автор

First of all, Thanks for the tutorial

client.c:45:22: error: dereferencing pointer to incomplete type
client.c:45:72: error: dereferencing pointer to incomplete type 

the code in 45th line is 
bcopy((char *)server->h_addr, (char *)&serv_addr.sin_addr.s_addr, server->h_length);

How do i resolve it...

khamarbasha
Автор

Cannot do socket programming on windows? Having written many network programs on windows, I think I'm fair in saying you're wrong professor.

lazygenius
Автор

AMAZING TUTORIAL, it have save my life... super understandable!! Thanks a lot Vinod!!

maurobilotti
Автор

Hi. I understood your concepts. I have some doubts what is the difference between send-recv method and read-write method. Also can be transfer 1mb buffer?

AbhishekKumar-jywj
Автор

Appreciate your efforts, it helped me . Thanks

jalaj
Автор

Hello Prof Vinod, i wanted some personal help to write a socks program to connect a client to a server and cache the web pages the client often visits

Chris-yxgn
Автор

Why is the source code provided in the webpage different from the one you have in the video 

erichk
Автор

I am interested in socket programming . I want to do my final year project on that . Where should i start from, any suggestions ? i mean any Books? e-books? what are the programming languages i should know? what are the pre-requisites for to learn socket programming ?

spandanpradhan
Автор

if i add a while(1) loop in tcp, just the way it is done for udp, then will the code run into an infininte loop? so that multiple messages could be sent and recieved without compiling?

devanshigariba
Автор

Hello, I have made my a program very similar to this. Just like yours, my programs client can send data and there server can receive it but I don't know how we can have the server not only receive from client but also send data back.

videoman
Автор

Take 15-20 minutes and type it in for yourself. Then you can leave comments on what each of the functions is doing, so you'll remember when you look back a few months down the road.

tcbetka
Автор

sir, our teacher have given us a work to send one file to another system using FTP and we are also using ubuntu and connected to same lan. where should i search for it( we need to use c language)

sunnyraj
Автор

really a very helpful video, thanks a lot

dheerajsingla
welcome to shbcf.ru