Movatterモバイル変換


[0]ホーム

URL:


Edureka!, profile picture
Uploaded byEdureka!
1,486 views

What is Socket Programming in Python | Edureka

This document discusses socket programming in Python. It covers what sockets are, how to create them in Python, common port numbers and protocols, important socket methods, the roles of clients and servers in communication, and how to transfer Python objects using sockets and the pickle module.

In this document
Powered by AI

Definition of sockets, client-server communication basics, and types of programs (servers and clients). Key topics include sending/receiving data and socket characteristics.

Definition of sockets, client-server communication basics, and types of programs (servers and clients). Key topics include sending/receiving data and socket characteristics.

Overview of common port numbers with associated protocols like HTTP(80), FTP(20), SMTP(25) for various applications.

Introduction to the socket module, methods for creating and managing sockets including socket creation and connection handling.

Definition of sockets, client-server communication basics, and types of programs (servers and clients). Key topics include sending/receiving data and socket characteristics.

Definition of client and server roles in networking, with emphasis on data transfer capabilities including the use of the pickle module for object transfer.

Embed presentation

Copyright © 2017, edureka and/or its affiliates. All rights reserved.
• What are sockets?• How to achieve Socket Programming in Python?• Servers and Clients• Client-Server Communication• Transferring Python Objectswww.edureka.co/python
www.edureka.co/python
• Sockets are interior endpoints built for sendingand receiving data• A single network will have two sockets• Sockets are a combination of an IP address and aPortwww.edureka.co/python
Protocol Port Number Python Library FunctionHTTP 80 httplib, urllib,xmlrpclib Web pagesFTP 20 ftplib, urllib File transfersNNTP 119 nntplib Unsent newsSMTP 25 smtplib Sending emailTelnet 23 telnetlib Command linesPOP3 110 poplib Fetching emailGopher 70 gopherlib Document transferCommon port numbers and the related protocolsCommon Port Numberswww.edureka.co/python
www.edureka.co/python
• Import the socket module or framework• This module consists of built-in methods that arerequired for creating sockets and help them associatewith each otherwww.edureka.co/python
Methods Descriptionsocket.socket()Used to create sockets (required on both server as well asclient ends to create sockets)socket.accept()Used to accept a connection. It returns a pair of values (conn,address)socket.bind() Used to bind to the address that is specified as a parametersocket.close() Used to bind to the address that is specified as a parametersocket.connect() Used to mark the socket as closedsocket.listen()Used to connect to a remote address specified as theparameterImportant methods of the socket modulewww.edureka.co/python
www.edureka.co/python
www.edureka.co/python• Either a program, a computer, or a device• Devoted to managing network resources• Can be on the same device or computer or local or evenremoteServerClient• Computer or software that receives information or services• Clients requests for services from servers• The best example is a web browserwww.edureka.co/python
www.edureka.co/python
www.edureka.co/python
• Socket Programming in Python alsoallows you to transfer Python objectssuch as sets, tuples, dictionaries, etc.• To achieve this, you need to importthe pickle module.www.edureka.co/python
Copyright © 2019, edureka and/or its affiliates. All rights reserved.
www.edureka.co/python

Recommended

PPTX
Networking in python by Rj
PDF
Network programming Using Python
PPTX
Addressing in networking (IP,MAC,Port addressing)
PPTX
Programming
PPTX
Internetworking
PPTX
Remote login
PPT
Mime
 
PPT
OSI Network model ppt
PPTX
HyperText Transfer Protocol (HTTP)
PPT
PPT
TCP/IP Network ppt
PDF
Socket programming
PPTX
Transport layer
PPTX
Socket programming in python
PPT
Socket programming
PPTX
Java package
PPTX
Socket Programming
PPTX
Broadcast Receiver
PPT
TCP/IP Protocols With All Layer Description
PPTX
Subnet Masks
PPTX
Subnetting Presentation
PPT
Sliding window protocol
PDF
Java Design Patterns Tutorial | Edureka
PPS
Interface
PPT
Selective repeat protocol
PPTX
Sub Netting
PPTX
Cloud Service Models
PDF
Socket Programming In Python
 
PDF
Python network programming

More Related Content

PPTX
Networking in python by Rj
PDF
Network programming Using Python
PPTX
Addressing in networking (IP,MAC,Port addressing)
PPTX
Programming
PPTX
Internetworking
PPTX
Remote login
PPT
Mime
 
PPT
OSI Network model ppt
Networking in python by Rj
Network programming Using Python
Addressing in networking (IP,MAC,Port addressing)
Programming
Internetworking
Remote login
Mime
 
OSI Network model ppt

What's hot

PPTX
HyperText Transfer Protocol (HTTP)
PPT
PPT
TCP/IP Network ppt
PDF
Socket programming
PPTX
Transport layer
PPTX
Socket programming in python
PPT
Socket programming
PPTX
Java package
PPTX
Socket Programming
PPTX
Broadcast Receiver
PPT
TCP/IP Protocols With All Layer Description
PPTX
Subnet Masks
PPTX
Subnetting Presentation
PPT
Sliding window protocol
PDF
Java Design Patterns Tutorial | Edureka
PPS
Interface
PPT
Selective repeat protocol
PPTX
Sub Netting
PPTX
Cloud Service Models
HyperText Transfer Protocol (HTTP)
TCP/IP Network ppt
Socket programming
Transport layer
Socket programming in python
Socket programming
Java package
Socket Programming
Broadcast Receiver
TCP/IP Protocols With All Layer Description
Subnet Masks
Subnetting Presentation
Sliding window protocol
Java Design Patterns Tutorial | Edureka
Interface
Selective repeat protocol
Sub Netting
Cloud Service Models

Similar to What is Socket Programming in Python | Edureka

PDF
Socket Programming In Python
 
PDF
Python network programming
PDF
Socket programming-in-python
PPT
Socket Programming_theory.ppt
PDF
Socket programming
PPTX
CLIENT SERVER COMMUNICATION.pptx
PDF
Hacking (with) WebSockets
PPTX
Pythonlearn-12-HTTP- Network Programming
PPTX
Network Programming-Python-13-8-2023.pptx
PPT
Socket programming
PDF
network programming lab manuaal in this file
PPTX
Basics of Socket Programming using python
PPTX
Network programming using python
PPTX
session6-Network Programming.pptx
PPTX
PYTHON -Chapter 5 NETWORK - MAULIK BORSANIYA
PDF
اسلاید اول جلسه یازدهم کلاس پایتون برای هکرهای قانونی
PPT
Python session 8
PPTX
python programming
PDF
Async I/O in Python
Socket Programming In Python
 
Python network programming
Socket programming-in-python
Socket Programming_theory.ppt
Socket programming
CLIENT SERVER COMMUNICATION.pptx
Hacking (with) WebSockets
Pythonlearn-12-HTTP- Network Programming
Network Programming-Python-13-8-2023.pptx
Socket programming
network programming lab manuaal in this file
Basics of Socket Programming using python
Network programming using python
session6-Network Programming.pptx
PYTHON -Chapter 5 NETWORK - MAULIK BORSANIYA
اسلاید اول جلسه یازدهم کلاس پایتون برای هکرهای قانونی
Python session 8
python programming
Async I/O in Python

More from Edureka!

PDF
Python Programming Tutorial | Edureka
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
PDF
Kubernetes Installation on Ubuntu | Edureka
PDF
Introduction to DevOps | Edureka
PDF
AWS Cloud Practitioner Tutorial | Edureka
PDF
Top 5 Trending Business Intelligence Tools | Edureka
PDF
Tableau Tutorial for Data Science | Edureka
PDF
Top Maven Interview Questions in 2020 | Edureka
PDF
Importance of Digital Marketing | Edureka
PDF
Blue Prism Top Interview Questions | Edureka
PDF
RPA in 2020 | Edureka
PDF
Cognitive AI Tutorial | Edureka
PDF
How to Deploy Java Web App in AWS| Edureka
PDF
EA Algorithm in Machine Learning | Edureka
PDF
Linux Mint Tutorial | Edureka
PDF
Email Notifications in Jenkins | Edureka
PDF
Big Data on AWS Tutorial | Edureka
PDF
What to learn during the 21 days Lockdown | Edureka
PDF
Top 5 PMP Certifications | Edureka
Python Programming Tutorial | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Kubernetes Installation on Ubuntu | Edureka
Introduction to DevOps | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Tableau Tutorial for Data Science | Edureka
Top Maven Interview Questions in 2020 | Edureka
Importance of Digital Marketing | Edureka
Blue Prism Top Interview Questions | Edureka
RPA in 2020 | Edureka
Cognitive AI Tutorial | Edureka
How to Deploy Java Web App in AWS| Edureka
EA Algorithm in Machine Learning | Edureka
Linux Mint Tutorial | Edureka
Email Notifications in Jenkins | Edureka
Big Data on AWS Tutorial | Edureka
What to learn during the 21 days Lockdown | Edureka
Top 5 PMP Certifications | Edureka

Recently uploaded

PDF
[BDD 2025 - Full-Stack Development] Agentic AI Architecture: Redefining Syste...
PDF
Open Source Post-Quantum Cryptography - Matt Caswell
PDF
[BDD 2025 - Artificial Intelligence] Building AI Systems That Users (and Comp...
PDF
Mastering UiPath Maestro – Session 2 – Building a Live Use Case - Session 2
PPTX
kernel PPT (Explanation of Windows Kernal).pptx
PPTX
"Feelings versus facts: why metrics are more important than intuition", Igor ...
 
PDF
Transforming Content Operations in the Age of AI
PPTX
Connecting the unconnectable: Exploring LoRaWAN for IoT
PDF
Lets Build a Serverless Function with Kiro
PPTX
UFCD 0797 - SISTEMAS OPERATIVOS_Unidade Completa.pptx
PDF
Dev Dives: Build smarter agents with UiPath Agent Builder
PDF
ODSC AI West: Agent Optimization: Beyond Context engineering
PDF
DUBAI IT MODERNIZATION WITH AZURE MANAGED SERVICES.pdf
PPTX
Leon Brands - Intro to GPU Occlusion (Graphics Programming Conference 2024)
PDF
Agentic Intro and Hands-on: Build your first Coded Agent
PDF
[BDD 2025 - Mobile Development] Mobile Engineer and Software Engineer: Are we...
PDF
PCCC25(設立25年記念PCクラスタシンポジウム):エヌビディア合同会社 テーマ2「NVIDIA BlueField-4 DPU」
PPTX
MuleSoft AI Series : Introduction to MCP
PDF
Mastering Agentic Orchestration with UiPath Maestro | Hands on Workshop
PDF
Crane Accident Prevention Guide: Key OSHA Regulations for Safer Operations
[BDD 2025 - Full-Stack Development] Agentic AI Architecture: Redefining Syste...
Open Source Post-Quantum Cryptography - Matt Caswell
[BDD 2025 - Artificial Intelligence] Building AI Systems That Users (and Comp...
Mastering UiPath Maestro – Session 2 – Building a Live Use Case - Session 2
kernel PPT (Explanation of Windows Kernal).pptx
"Feelings versus facts: why metrics are more important than intuition", Igor ...
 
Transforming Content Operations in the Age of AI
Connecting the unconnectable: Exploring LoRaWAN for IoT
Lets Build a Serverless Function with Kiro
UFCD 0797 - SISTEMAS OPERATIVOS_Unidade Completa.pptx
Dev Dives: Build smarter agents with UiPath Agent Builder
ODSC AI West: Agent Optimization: Beyond Context engineering
DUBAI IT MODERNIZATION WITH AZURE MANAGED SERVICES.pdf
Leon Brands - Intro to GPU Occlusion (Graphics Programming Conference 2024)
Agentic Intro and Hands-on: Build your first Coded Agent
[BDD 2025 - Mobile Development] Mobile Engineer and Software Engineer: Are we...
PCCC25(設立25年記念PCクラスタシンポジウム):エヌビディア合同会社 テーマ2「NVIDIA BlueField-4 DPU」
MuleSoft AI Series : Introduction to MCP
Mastering Agentic Orchestration with UiPath Maestro | Hands on Workshop
Crane Accident Prevention Guide: Key OSHA Regulations for Safer Operations

What is Socket Programming in Python | Edureka

  • 1.
    Copyright © 2017,edureka and/or its affiliates. All rights reserved.
  • 2.
    • What aresockets?• How to achieve Socket Programming in Python?• Servers and Clients• Client-Server Communication• Transferring Python Objectswww.edureka.co/python
  • 3.
  • 4.
    • Sockets areinterior endpoints built for sendingand receiving data• A single network will have two sockets• Sockets are a combination of an IP address and aPortwww.edureka.co/python
  • 5.
    Protocol Port NumberPython Library FunctionHTTP 80 httplib, urllib,xmlrpclib Web pagesFTP 20 ftplib, urllib File transfersNNTP 119 nntplib Unsent newsSMTP 25 smtplib Sending emailTelnet 23 telnetlib Command linesPOP3 110 poplib Fetching emailGopher 70 gopherlib Document transferCommon port numbers and the related protocolsCommon Port Numberswww.edureka.co/python
  • 6.
  • 7.
    • Import thesocket module or framework• This module consists of built-in methods that arerequired for creating sockets and help them associatewith each otherwww.edureka.co/python
  • 8.
    Methods Descriptionsocket.socket()Used tocreate sockets (required on both server as well asclient ends to create sockets)socket.accept()Used to accept a connection. It returns a pair of values (conn,address)socket.bind() Used to bind to the address that is specified as a parametersocket.close() Used to bind to the address that is specified as a parametersocket.connect() Used to mark the socket as closedsocket.listen()Used to connect to a remote address specified as theparameterImportant methods of the socket modulewww.edureka.co/python
  • 9.
  • 10.
    www.edureka.co/python• Either aprogram, a computer, or a device• Devoted to managing network resources• Can be on the same device or computer or local or evenremoteServerClient• Computer or software that receives information or services• Clients requests for services from servers• The best example is a web browserwww.edureka.co/python
  • 11.
  • 12.
  • 13.
    • Socket Programmingin Python alsoallows you to transfer Python objectssuch as sets, tuples, dictionaries, etc.• To achieve this, you need to importthe pickle module.www.edureka.co/python
  • 14.
    Copyright © 2019,edureka and/or its affiliates. All rights reserved.
  • 15.

[8]ページ先頭

©2009-2025 Movatter.jp