https://github.com/thevickypedia/socket_programming_tcp
Simple TCP connection using C program
https://github.com/thevickypedia/socket_programming_tcp
socket-programming tcp-connection
Last synced: 9 months ago
JSON representation
Simple TCP connection using C program
- Host: GitHub
- URL: https://github.com/thevickypedia/socket_programming_tcp
- Owner: thevickypedia
- Created: 2019-03-31T17:29:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-26T21:40:37.000Z (over 5 years ago)
- Last Synced: 2025-02-12T22:22:23.462Z (11 months ago)
- Topics: socket-programming, tcp-connection
- Language: C
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Socket Programming
Simple TCP connection between server and client
This is a simple tcp connection establishment between server and client using socket programming in C
Suitable for Linux command line
Steps:
* Place the server and client files in different folders
* Run gcc server.c -o server to create executable server file
* Run gcc client.c -o client to create executable client file
* Initiate server using ./server
* Initiate client using ./client
Connection established!
Note: Both ./server and ./client can run without arguments in case of [localhost](https://stackoverflow.com/questions/7382602/what-is-the-difference-between-127-0-0-1-and-localhost) (127.0.0.1) and the port number is also hard coded.