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

PDF
Network programming Using Python
PPTX
Networking in python by Rj
PPT
OSI Network model ppt
PPTX
Remote login
PPTX
Internetworking
PPTX
Addressing in networking (IP,MAC,Port addressing)
PPT
Mime
 
PPTX
Programming
PPT
Python GUI Programming
PPTX
PPT
Ppt of socket
PPTX
Android activity lifecycle
PPT
Network programming in Java
PPTX
Event Handling in java
 
PPTX
Dhcp ppt
PPTX
Socket programming in python
PPT
Socket programming
PPTX
Java swing
PPT
SQLITE Android
PPTX
HTTP request and response
PPTX
Bootstrapping in Compiler
PDF
Remote Method Invocation (RMI)
PDF
Socket Programming In Python
 
PPTX
Classes, objects in JAVA
PPTX
graphics programming in java
PPTX
MULTI THREADING IN JAVA
PPT
Java awt
PDF
Socket programming

More Related Content

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

What's hot

PPT
Python GUI Programming
PPTX
PPT
Ppt of socket
PPTX
Android activity lifecycle
PPT
Network programming in Java
PPTX
Event Handling in java
 
PPTX
Dhcp ppt
PPTX
Socket programming in python
PPT
Socket programming
PPTX
Java swing
PPT
SQLITE Android
PPTX
HTTP request and response
PPTX
Bootstrapping in Compiler
PDF
Remote Method Invocation (RMI)
PDF
Socket Programming In Python
 
PPTX
Classes, objects in JAVA
PPTX
graphics programming in java
PPTX
MULTI THREADING IN JAVA
PPT
Java awt
Python GUI Programming
Ppt of socket
Android activity lifecycle
Network programming in Java
Event Handling in java
 
Dhcp ppt
Socket programming in python
Socket programming
Java swing
SQLITE Android
HTTP request and response
Bootstrapping in Compiler
Remote Method Invocation (RMI)
Socket Programming In Python
 
Classes, objects in JAVA
graphics programming in java
MULTI THREADING IN JAVA
Java awt

Similar to What is Socket Programming in Python | Edureka

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

More from Edureka!

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

Recently uploaded

PDF
ODSC AI West: Agent Optimization: Beyond Context engineering
PDF
Accessibility & Inclusion: What Comes Next. Presentation of the Digital Acces...
PDF
[BDD 2025 - Full-Stack Development] The Modern Stack: Building Web & AI Appli...
PDF
Transforming Content Operations in the Age of AI
PDF
10 Best Automation QA Testing Software Tools in 2025.pdf
PDF
[BDD 2025 - Artificial Intelligence] Building AI Systems That Users (and Comp...
PDF
Agentic Intro and Hands-on: Build your first Coded Agent
PPTX
MuleSoft AI Series : Introduction to MCP
PDF
[BDD 2025 - Full-Stack Development] Digital Accessibility: Why Developers nee...
PDF
How Much Does It Cost To Build Software
PDF
Top Crypto Supers 15th Report November 2025
PDF
[BDD 2025 - Mobile Development] Exploring Apple’s On-Device FoundationModels
PDF
Integrating AI with Meaningful Human Collaboration
PDF
Mulesoft Meetup Online Portuguese: MCP e IA
PDF
DUBAI IT MODERNIZATION WITH AZURE MANAGED SERVICES.pdf
PDF
The partnership effect: Libraries and publishers on collaborating and thrivin...
PDF
KMWorld - KM & AI Bring Collectivity, Nostalgia, & Selectivity
PDF
Dev Dives: Build smarter agents with UiPath Agent Builder
PPTX
The power of Slack and MuleSoft | Bangalore MuleSoft Meetup #60
PDF
[DevFest Strasbourg 2025] - NodeJs Can do that !!
ODSC AI West: Agent Optimization: Beyond Context engineering
Accessibility & Inclusion: What Comes Next. Presentation of the Digital Acces...
[BDD 2025 - Full-Stack Development] The Modern Stack: Building Web & AI Appli...
Transforming Content Operations in the Age of AI
10 Best Automation QA Testing Software Tools in 2025.pdf
[BDD 2025 - Artificial Intelligence] Building AI Systems That Users (and Comp...
Agentic Intro and Hands-on: Build your first Coded Agent
MuleSoft AI Series : Introduction to MCP
[BDD 2025 - Full-Stack Development] Digital Accessibility: Why Developers nee...
How Much Does It Cost To Build Software
Top Crypto Supers 15th Report November 2025
[BDD 2025 - Mobile Development] Exploring Apple’s On-Device FoundationModels
Integrating AI with Meaningful Human Collaboration
Mulesoft Meetup Online Portuguese: MCP e IA
DUBAI IT MODERNIZATION WITH AZURE MANAGED SERVICES.pdf
The partnership effect: Libraries and publishers on collaborating and thrivin...
KMWorld - KM & AI Bring Collectivity, Nostalgia, & Selectivity
Dev Dives: Build smarter agents with UiPath Agent Builder
The power of Slack and MuleSoft | Bangalore MuleSoft Meetup #60
[DevFest Strasbourg 2025] - NodeJs Can do that !!

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