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
• 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

Socket programming or network programming

  • 1.
    Topic (Socket programmingOR Network programming) Teacher …… Mam Farwa Shah Subject …. ACP(Advanced Computer Programming) Student Name Abdul Manan(6341) Sayyam 6088 Abdul Rehman 6083
  • 2.
    Socket programming ORNetwork 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(LocalArea 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 isone 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 addressis 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 12 UDP Diagram socket Diagram package Java.net
  • 9.
    • A socketperforms four fundamental operation: • To connect to the remote machine , • Send data , • Receive data and • Close the connection. Operations on Socket
  • 10.
    steps 2 In serverside make server object and run in socket port number Accept method 3 Make socket object(IP , port number)
  • 11.
  • 12.