A File Transfer Application Using Socket Programming
- A socket is one endpoint of a two way communication link between two programs running on the network.
- The socket provides a bidirectional FIFO Communication facility over the network.
- Each socket has a specific address. This address is composed of an IP address and a port number.
- Socket are generally employed in client server applications.
- The server creates a socket, attaches it to a network port addresses then waits for the client to contact it.
- The client creates a socket and then attempts to connect to the server socket. When the connection is established, transfer of data takes place.
Create() : Create's a Socket
Bind() : Binds a unique local name to the Socket
Listen() : Ready to receive a Connection
Connect() : Ready to act as a Sender
Accept() : Server to accept a Connection request from a Client
Write() : Write's data on a Socket
Read() : Read's data on a Socket
Close() : Close's a Connection
➡️ Download the Mobile version >> Mobile 📱
➡️ Download the Desktop version >> Desktop 🖥️
# Happy Coding #