Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chandima2000/file-transfer-program-using-c-and-tcp-socket-programming
This project implements a simple file-transfer program in C using TCP socket programming.
https://github.com/chandima2000/file-transfer-program-using-c-and-tcp-socket-programming
c socket-programming tcp-socket
Last synced: 2 days ago
JSON representation
This project implements a simple file-transfer program in C using TCP socket programming.
- Host: GitHub
- URL: https://github.com/chandima2000/file-transfer-program-using-c-and-tcp-socket-programming
- Owner: chandima2000
- Created: 2024-02-06T06:24:40.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-06T06:40:57.000Z (10 months ago)
- Last Synced: 2024-02-06T07:37:28.985Z (10 months ago)
- Topics: c, socket-programming, tcp-socket
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# File-Transfer-Program-using-C-and-TCP-Socket-Programming
This project implements a simple file-transfer program in C using TCP socket programming. It consists of two parts: a client and a server. The program is designed to work on UNIX-based systems such as Linux and Ubuntu.
## Features
- Client-Server Architecture: The project is divided into a client and a server, enabling file transfer between the two.- TCP Socket Programming: Utilizes TCP (Transmission Control Protocol) for reliable and connection-oriented communication.
## Getting Started
### Prerequisites
- C Compiler
- UNIX-based system (Linux, Ubuntu)### Usage
1. Compile the Code:
#### `gcc client.c -o client`
#### `gcc server.c -o server`2. Run the Server:
#### `./server `3. Run the Client:
#### `./client `## File Descriptions
#### client.c: Code for the client-side of the file transfer.#### server.c: Code for the server-side of the file transfer.
### How it Works
- The server listens on a specified port.
- The client connects to the server, reads a file, and sends it to the server.
- The server receives the file and saves it as "Greet_received.txt."
## Contributing
Feel free to contribute to the project by opening issues or pull requests.