i
Python functionality and evolution
Installing Python (windows and Ubuntu)
IDLE (Integrated Development and Learning Environment)
Write the first python program and execute it
Keywords in Python
Identifiers in Python
Indentation in Python
Comments in Python
Multi-line Comments in Python
Getting user input
Python Function
Calling a function
Arguments in Function
Scope of Variables
Modules in Python
The PYTHON PATH-Variable
Python File Open
Python File Opening Modes
The file-Object-Attributes
Python File Close() Method
Python File Read/Write
Python File Position
Renaming and Deleting Files in Python
Python Directory Methods
File/Directory Methods
Exceptions in Python
The try-finally Clause
The argument of Exception
Raising Exceptions
Python Built-in Exceptions
Python OOPs Concepts
Python Classes/Objects
Creating Instance Objects
Accessing Attributes
Built-In Class Attributes
Garbage Collection
Python Inheritance
Overriding Methods
Method overriding
Data Hiding
Regular Expression
The match function
The search function
Match Object Methods & Description
Matching or Searching
Search or Replace
Regular Expression Modifiers / Option Flags
Grouping with Parentheses
Python Socket Programming
Python Socket Server
Python Socket Client
Send Data Between Clients
Python Socket or Server
Python Socket Clients
Points to ponder
To send data between 2 or more client devices over internet is tricky. Due to protections implemented in network security, not all devices connected to world wide web have publicly accessible internet protocol (IP) address.
This means that Python code that we implemented will not be 100% reliable for generally sending peer-to-peer data in real-time app. How do we achieve reliability / speed when transmitting peer-to-peer data?
import socket
So we can create socket objects insidecode
sock =socket.socket(socket.AF_INET, socket.SOCK_STREAM)
Above code creates a socket object that we are storing in “sock” variable. The constructor is provided family and type parameter respectively. The family parameter set to the default value, which is Address Format Internet.
The type parameter set to Socket-Stream, also the default which enables “sequenced, reliable, two-way connection-based byte streams” over TCP1.
Don't miss out!