https://github.com/64j0/network-examples
Udemy course: Fundamentals of Networking for Effective Backend Design.
https://github.com/64j0/network-examples
Last synced: about 2 months ago
JSON representation
Udemy course: Fundamentals of Networking for Effective Backend Design.
- Host: GitHub
- URL: https://github.com/64j0/network-examples
- Owner: 64J0
- Created: 2022-05-23T23:00:51.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-25T22:37:40.000Z (almost 3 years ago)
- Last Synced: 2025-02-24T01:42:20.807Z (2 months ago)
- Language: C
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Network Examples
This repository is used to store the code written during the course Fundamentals of Networking for Effective Backend Design.
## How to run it?
### Javascript UDP
```bash
# UDP
#
# for the JAVASCRIPT project:
# start node project
cd udpserver-javascript
npm install
node index.mjs
# check this terminal# on a different terminal run this command to stablish connection
nc -u 127.0.0.1 5500
# start typing and hitting enter to send the message
# inspect the terminal running the Node.js application
```### C UDP
```bash
# UDP
#
# for the C project
cd udpserver-c
gcc main.c -o udp-server.out
./udp-server.out
# on a different terminal run this command to stablish connection
nc -u 127.0.0.1 5501
# start typing and hitting enter to send the message
```### Javascript TCP
```bash
# TCP
#
# for the JAVASCRIPT project:
# start node project
cd tcpserver-javascript
node index.mjs# on a different terminal run this command to stablish connection
nc 127.0.0.1 8800
# start typing and hitting enter to send the message
# inspect the terminal running the Node.js application
```### C TCP
```bash
# TCP
#
# for the C project
cd tcpserver-c
gcc main.c -o tcp-server.out
./tcp-server.out
# on a different terminal run this command to stablish connection
nc 127.0.0.1 8801
# start typing and hitting enter to send the message
```