An open API service indexing awesome lists of open source software.

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

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 client

The 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 client

The 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)