SlideShare a Scribd company logo
Topic (Socket programming OR Network programming)
Teacher …… Mam Farwa Shah
Subject …. ACP(Advanced Computer Programming)
Student Name
Abdul Manan(6341)
Sayyam 6088
Abdul Rehman 6083
Socket programming OR Network
programming
What is network?
The action or process of interacting with others to exchange
information and develop professional or social contacts.
Networking
Type of Network
LAN(Local Area Network)
MAN(Man area Network)
WAN (wide Area Network)
How to establish Network
Software (controls)
Hardware ( switch , router)
Media (wires, fiber etc)
Socket
A socket is one end-point of a two way commination link between two
programs running on the network ‘
What is Socket
IPAddress (192.168.11.1)
Port number(8888)
Protocol ( TCP VS UDP )
MAC address
Socket
some important concept in Socket Programming
IP Address
Ip address is provided by network, IP is a unique number that identify each computer using the internet
protocol to communicate over a network
Port is a way to identify to which a network message is to be forwaded when it arrive at server
Java socket
TCP
Socket
Server Socket
1 2
UDP
Diagram socket
Diagram package
Java.net
Socket programming or network programming
• A socket performs four fundamental operation:
• To connect to the remote machine ,
• Send data ,
• Receive data and
• Close the connection.
Operations on Socket
steps
2 In server side make server
object and run in socket
port number
Accept method
3 Make socket
object(IP , port
number)
Server steps Client Step
Code Example
Socket programming or network programming
Ad

Recommended

Socket Programming
Socket Programming
VisualBee.com
 
Socket Programming
Socket Programming
CEC Landran
 
Socket programming
Socket programming
Anurag Tomar
 
Network programming in Java
Network programming in Java
Tushar B Kute
 
Basic socket programming
Basic socket programming
Kristian Arjianto
 
Android Threading
Android Threading
Jussi Pohjolainen
 
OSI model and TCP/IP model
OSI model and TCP/IP model
Rubal Sagwal
 
Socket Programming In Python
Socket Programming In Python
didip
 
Socket programming in python
Socket programming in python
Vignesh Suresh
 
TCP and UDP
TCP and UDP
Ramesh Giri
 
Socket Programming with Python
Socket Programming with Python
GLC Networks
 
Networking in Java
Networking in Java
Tushar B Kute
 
Snmp
Snmp
hetaljadav
 
Android adapters
Android adapters
baabtra.com - No. 1 supplier of quality freshers
 
Socket programming in Java (PPTX)
Socket programming in Java (PPTX)
UC San Diego
 
Http protocol
Http protocol
Arpita Naik
 
Sockets
Sockets
Indrasena Reddy
 
Http
Http
Luavis Kang
 
Java And Multithreading
Java And Multithreading
Shraddha
 
Socket programming using C
Socket programming using C
Ajit Nayak
 
Express js
Express js
Manav Prasad
 
Php forms
Php forms
Anne Lee
 
Web application architecture
Web application architecture
Tejaswini Deshpande
 
Android notification
Android notification
Krazy Koder
 
Internet control message protocol
Internet control message protocol
asimnawaz54
 
Http Server Programming in JAVA - Handling http requests and responses
Http Server Programming in JAVA - Handling http requests and responses
bharathiv53
 
Sctp
Sctp
DeepaSoman5
 
Java Servlets
Java Servlets
BG Java EE Course
 
Socket programming assignment
Socket programming assignment
Ravi Gupta
 
Java Network Programming.pptx
Java Network Programming.pptx
RoshniSundrani
 

More Related Content

What's hot (20)

Socket programming in python
Socket programming in python
Vignesh Suresh
 
TCP and UDP
TCP and UDP
Ramesh Giri
 
Socket Programming with Python
Socket Programming with Python
GLC Networks
 
Networking in Java
Networking in Java
Tushar B Kute
 
Snmp
Snmp
hetaljadav
 
Android adapters
Android adapters
baabtra.com - No. 1 supplier of quality freshers
 
Socket programming in Java (PPTX)
Socket programming in Java (PPTX)
UC San Diego
 
Http protocol
Http protocol
Arpita Naik
 
Sockets
Sockets
Indrasena Reddy
 
Http
Http
Luavis Kang
 
Java And Multithreading
Java And Multithreading
Shraddha
 
Socket programming using C
Socket programming using C
Ajit Nayak
 
Express js
Express js
Manav Prasad
 
Php forms
Php forms
Anne Lee
 
Web application architecture
Web application architecture
Tejaswini Deshpande
 
Android notification
Android notification
Krazy Koder
 
Internet control message protocol
Internet control message protocol
asimnawaz54
 
Http Server Programming in JAVA - Handling http requests and responses
Http Server Programming in JAVA - Handling http requests and responses
bharathiv53
 
Sctp
Sctp
DeepaSoman5
 
Java Servlets
Java Servlets
BG Java EE Course
 

Similar to Socket programming or network programming (20)

Socket programming assignment
Socket programming assignment
Ravi Gupta
 
Java Network Programming.pptx
Java Network Programming.pptx
RoshniSundrani
 
Chap 1 Network Theory & Java Overview
Chap 1 Network Theory & Java Overview
Ministry of Higher Education
 
Socket programming using java
Socket programming using java
UC San Diego
 
Ports & sockets
Ports & sockets
myrajendra
 
network programming lab manuaal in this file
network programming lab manuaal in this file
shivani158351
 
Socket Programming
Socket Programming
elliando dias
 
Final networks lab manual
Final networks lab manual
Jaya Prasanna
 
Project-based Training in Network Programming.pdf
Project-based Training in Network Programming.pdf
emblogic132
 
chapter-4-networking hjgjjgj did hfhhfhj
chapter-4-networking hjgjjgj did hfhhfhj
AmitDeshai
 
socket-programming.pptx
socket-programming.pptx
RubenAssandja
 
Socket programming
Socket programming
MdEmonRana
 
NP-lab-manual (1).pdf
NP-lab-manual (1).pdf
RaviRajput416403
 
NP-lab-manual.pdf
NP-lab-manual.pdf
RaviRajput416403
 
Network Programming-Python-13-8-2023.pptx
Network Programming-Python-13-8-2023.pptx
ssuser23035c
 
Client server project
Client server project
yogendra kumar patel
 
Networking in python by Rj
Networking in python by Rj
Shree M.L.Kakadiya MCA mahila college, Amreli
 
Network Programming Assignment Help
Network Programming Assignment Help
HelpWithAssignment.com
 
Linux Systems Prograramming: Unix Domain, Internet Domain (TCP, UDP) Socket P...
Linux Systems Prograramming: Unix Domain, Internet Domain (TCP, UDP) Socket P...
RashidFaridChishti
 
Sockets
Sockets
Toru Watanabe
 
Socket programming assignment
Socket programming assignment
Ravi Gupta
 
Java Network Programming.pptx
Java Network Programming.pptx
RoshniSundrani
 
Socket programming using java
Socket programming using java
UC San Diego
 
Ports & sockets
Ports & sockets
myrajendra
 
network programming lab manuaal in this file
network programming lab manuaal in this file
shivani158351
 
Final networks lab manual
Final networks lab manual
Jaya Prasanna
 
Project-based Training in Network Programming.pdf
Project-based Training in Network Programming.pdf
emblogic132
 
chapter-4-networking hjgjjgj did hfhhfhj
chapter-4-networking hjgjjgj did hfhhfhj
AmitDeshai
 
socket-programming.pptx
socket-programming.pptx
RubenAssandja
 
Socket programming
Socket programming
MdEmonRana
 
Network Programming-Python-13-8-2023.pptx
Network Programming-Python-13-8-2023.pptx
ssuser23035c
 
Linux Systems Prograramming: Unix Domain, Internet Domain (TCP, UDP) Socket P...
Linux Systems Prograramming: Unix Domain, Internet Domain (TCP, UDP) Socket P...
RashidFaridChishti
 
Ad

Recently uploaded (20)

OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
Shane Coughlan
 
Why Edge Computing Matters in Mobile Application Tech.pdf
Why Edge Computing Matters in Mobile Application Tech.pdf
IMG Global Infotech
 
arctitecture application system design os dsa
arctitecture application system design os dsa
za241967
 
University Campus Navigation for All - Peak of Data & AI
University Campus Navigation for All - Peak of Data & AI
Safe Software
 
A Guide to Telemedicine Software Development.pdf
A Guide to Telemedicine Software Development.pdf
Olivero Bozzelli
 
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
pcprocore
 
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
IFI Techsolutions
 
Sysinfo OST to PST Converter Infographic
Sysinfo OST to PST Converter Infographic
SysInfo Tools
 
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
dheeodoo
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
Hassan Abid
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
Zoho Creator Solution for EI by Elsner Technologies.docx
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
 
Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
BradBedford3
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
Why Every Growing Business Needs a Staff Augmentation Company IN USA.pdf
Why Every Growing Business Needs a Staff Augmentation Company IN USA.pdf
mary rojas
 
Building Geospatial Data Warehouse for GIS by GIS with FME
Building Geospatial Data Warehouse for GIS by GIS with FME
Safe Software
 
Advance Doctor Appointment Booking App With Online Payment
Advance Doctor Appointment Booking App With Online Payment
AxisTechnolabs
 
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
Shane Coughlan
 
Why Edge Computing Matters in Mobile Application Tech.pdf
Why Edge Computing Matters in Mobile Application Tech.pdf
IMG Global Infotech
 
arctitecture application system design os dsa
arctitecture application system design os dsa
za241967
 
University Campus Navigation for All - Peak of Data & AI
University Campus Navigation for All - Peak of Data & AI
Safe Software
 
A Guide to Telemedicine Software Development.pdf
A Guide to Telemedicine Software Development.pdf
Olivero Bozzelli
 
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
pcprocore
 
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
IFI Techsolutions
 
Sysinfo OST to PST Converter Infographic
Sysinfo OST to PST Converter Infographic
SysInfo Tools
 
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
dheeodoo
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
Hassan Abid
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
Zoho Creator Solution for EI by Elsner Technologies.docx
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
 
Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
BradBedford3
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
Why Every Growing Business Needs a Staff Augmentation Company IN USA.pdf
Why Every Growing Business Needs a Staff Augmentation Company IN USA.pdf
mary rojas
 
Building Geospatial Data Warehouse for GIS by GIS with FME
Building Geospatial Data Warehouse for GIS by GIS with FME
Safe Software
 
Advance Doctor Appointment Booking App With Online Payment
Advance Doctor Appointment Booking App With Online Payment
AxisTechnolabs
 
Ad

Socket programming or network programming

  • 1. Topic (Socket programming OR Network programming) Teacher …… Mam Farwa Shah Subject …. ACP(Advanced Computer Programming) Student Name Abdul Manan(6341) Sayyam 6088 Abdul Rehman 6083
  • 2. Socket programming OR Network programming What is network? The action or process of interacting with others to exchange information and develop professional or social contacts.
  • 3. Networking Type of Network LAN(Local Area Network) MAN(Man area Network) WAN (wide Area Network) How to establish Network Software (controls) Hardware ( switch , router) Media (wires, fiber etc)
  • 4. Socket A socket is one end-point of a two way commination link between two programs running on the network ‘ What is Socket
  • 5. IPAddress (192.168.11.1) Port number(8888) Protocol ( TCP VS UDP ) MAC address Socket some important concept in Socket Programming
  • 6. IP Address Ip address is provided by network, IP is a unique number that identify each computer using the internet protocol to communicate over a network Port is a way to identify to which a network message is to be forwaded when it arrive at server
  • 7. Java socket TCP Socket Server Socket 1 2 UDP Diagram socket Diagram package Java.net
  • 9. • A socket performs four fundamental operation: • To connect to the remote machine , • Send data , • Receive data and • Close the connection. Operations on Socket
  • 10. steps 2 In server side make server object and run in socket port number Accept method 3 Make socket object(IP , port number)