Comprehensive Guide to Network Programming in Python
This detailed guide covers a range of topics including network programming in Python, inter-process communication using TCP and UDP, TCP and UDP servers and clients, testing methods, remote procedure calls, and remote objects. Each section provides insights, explanations, and practical examples to help you master these concepts in Python.
Uploaded on Dec 06, 2024 | 0 Views
Download Presentation
Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
E N D
Presentation Transcript
Network programming in Python
Inter-process communication using TCP socket() bind() listen() socket() accept() connect() send() recv() recv() send() Note: Should close the sockets after finish using (or use the with statement from Python for this)
TCP Server https://docs.python.org/3/library/socket.html
TCP Client https://docs.python.org/3/library/socket.html
Inter-process communication using UDP socket() bind() socket() recvfrom() sendto() recvfrom() sendto() Note: Should close the sockets after finish using (or use the with statement from Python for this)
Remote Procedure Call procedure calls client functions server functions client stub (proxy) server stub (skeleton) actual marshalling RPC Library RPC Library
RPC Server https://docs.python.org/3/library/xmlrpc.html
RPC Client https://docs.python.org/3/library/xmlrpc.html
Remote Object remote object calls client objects server objects server stub (skeleton) client stub (proxy) actual marshalling RO Library RO Library
Object Server https://pythonhosted.org/Pyro4/
Object Client https://pythonhosted.org/Pyro4/
Object Server with a NS https://pythonhosted.org/Pyro4/
Object Client with a NS https://pythonhosted.org/Pyro4/
References Socket: https://docs.python.org/3/library/socket.html RPC: https://docs.python.org/3/library/xmlrpc.html Remote object: https://pythonhosted.org/Pyro4/