Socket Programming in Python: Introduction

Python 3.7
  • 9 Videos | 1h 6m 7s
  • Includes Assessment
  • Earns a Badge
Likes 55 Likes 55
Learners can explore basic concepts of Python socket programming, and how to communicate small amounts of data between Python applications by using either the same machine or over a network, in this 9-video course. Begin by learning how to use Python language to set up a communication line by creating a socket. Then learn to initialize a simple socket, and use it to transfer text data from one application to another. This course next demonstrates how to create a client app and server app in Python, and how each app uses a socket to communicate. Learners will observe a demonstration of how to transmit a Python dictionary and custom object over a socket connection. You will learn how to use a socket model to set up a simple TCP (transmission control protocol) socket to transfer text between applications. Next, learners will examine other properties of Python sockets, including its use with the context manager and the setting of a time-out for connections. Finally, you will learn to use the Pickle library to convey Python objects over a socket connection.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    use the socket module in a Python application and identify the functions that can be used to get information about the application's host
    write server and client applications that can communicate with each other using TCP sockets
    implement socket communication between applications by using Python's with context manager
    configure an application to wait for a set amount of time for communication from another process
  • recognize how data needs to be transformed to bytes when transferring it over Python sockets
    use the pickle module to serialize data when sending it over a socket connection and de-serialize the data at the other end
    recover and use objects that were transmitted from another Python application over a socket connection
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 1s
    UP NEXT
  • Playable
    2. 
    Introducing the socket Module
    7m 36s
  • Locked
    3. 
    Using Sockets in Client and Server Applications
    10m
  • Locked
    4. 
    Using socket Objects in a with Block
    8m 1s
  • Locked
    5. 
    Setting Timeouts for Python Sockets
    6m 20s
  • Locked
    6. 
    Transferring Python Objects Over Sockets - Part 1
    9m 50s
  • Locked
    7. 
    Transferring Python Objects Over Sockets - Part 2
    8m 53s
  • Locked
    8. 
    Transferring Python Objects Over Sockets - Part 3
    8m 48s
  • Locked
    9. 
    Course Summary
    1m 9s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE