Comprehensive Guide to Network Programming in Python

Slide Note
Embed
Share

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


  1. Network programming in Python

  2. 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)

  3. TCP Server https://docs.python.org/3/library/socket.html

  4. TCP Client https://docs.python.org/3/library/socket.html

  5. Testing

  6. 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)

  7. UDP Receiver

  8. UDP Sender

  9. Testing

  10. Remote Procedure Call procedure calls client functions server functions client stub (proxy) server stub (skeleton) actual marshalling RPC Library RPC Library

  11. RPC Server https://docs.python.org/3/library/xmlrpc.html

  12. RPC Client https://docs.python.org/3/library/xmlrpc.html

  13. Testing

  14. Remote Object remote object calls client objects server objects server stub (skeleton) client stub (proxy) actual marshalling RO Library RO Library

  15. Object Server https://pythonhosted.org/Pyro4/

  16. Object Client https://pythonhosted.org/Pyro4/

  17. Testing

  18. Object Server with a NS https://pythonhosted.org/Pyro4/

  19. Object Client with a NS https://pythonhosted.org/Pyro4/

  20. Test

  21. 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/

Related


More Related Content