Skip to content

piyushdev04/Chat-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Socket Programming in C++

Basic Steps in Socket Programming The general flow of creating a socket-based application involves these steps:

  • Socket Creation: A socket is created using socket() function.
  • Binding: The server binds the socket to a local address and port using bind().
  • Listening: The server listens for incoming connection requests with listen().
  • Accepting Connection: The server accepts a client connection with accept().
  • Connecting: The client connects to the server using connect().
  • Sending/Receiving Data: Data is exchanged using send() and recv().
  • Closing Connection: The connection is closed using close() or closesocket().

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages