Socket Programming

 Building your own client server chatroom

Introduction to Computer Networks

Socket Programming

Let's Code

Server

Sequence of Functions

  • Socket Creation : socket()
  • Assign Address To Socket: bind()
  • Make The Server Listen: listen()
  • Accept Connection : accept()
  • Exchanging Data: recv() and send()
  • Socket Close: close()

 

 

Client

  • Socket Creation : socket()

  • Establish Connection : connect()

  • Exchanging Data: recv() and send()

  • Socket Close: close()

Sequence of Functions

Quiz Time

Go to www.kahoot.it or scan this QR code

 

Recruitments

Recruitment Test

21st February 2020

6:30 PM onwards

Venue : TBD

Syllabus : Topics covered in the workshop

Questions?

Code

sudo apt-get install g++

Workshop : Linux (Socket Programming) Spring 2020

By Roodram Paneri

Workshop : Linux (Socket Programming) Spring 2020

  • 952