https://github.com/davidjnevin/python_socket_101
An Introduction to SocketProgramming in Python
https://github.com/davidjnevin/python_socket_101
Last synced: 3 months ago
JSON representation
An Introduction to SocketProgramming in Python
- Host: GitHub
- URL: https://github.com/davidjnevin/python_socket_101
- Owner: davidjnevin
- Created: 2023-09-16T18:14:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-17T09:35:21.000Z (over 1 year ago)
- Last Synced: 2024-12-31T02:23:56.889Z (5 months ago)
- Language: Python
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Socket Programming in Python
An introduction to socket programming in Python.
## Capitalization:
Using hosts[]
The server
* Receives data from the client
* Prints the original message
* Capitalizes the message
* Sends the capitalized version back to the clientThe client
* Takes input from the user (host address)
* Takes input from the user (message)
* Displays the return from the server (message capitalized)## Chat
Using connect()
The server
* Receives data from the client
* Prints the original message
* Takes input from the user
* Sends the reply back to the clientThe client
* Takes input from the user (message)
* Sends the message to the server
* Receives data from the server
* Displays the return message from the server## TCP Client Server
Using TCP connect(), sendall() and recvall()
source : An Introduction to Socket Programming with Python from [Network Fundamentals](https://www.educative.io/module/network-fundamentals)