Module 8: Networking

Topic: Socket Programming

Topic: Client and Server Connection thru socket

Lecture | Socket Coding

Try

  • In the network transport layer, an object of the socket class should be created. There may be, in general, two types of sockets available: Socket for server, and socket for clients.

    Make sure that you are ready for the following technology learning:

    • How a server socket is ready to serve the client requests?
    • How a client socket can access the server?
    • How can they continue to communicate?
  • Tipping Points for Network Professionalism
    1. Read the definition of "socket" class and the methods available with the socket class
    2. A server needs to bind with a specific socket, i.e., port
    3. Then the server listens to read the line sent from a client
    4. On the other hand, a client may send a request message to the server, by specifying the port of the server socket
    5. A client can also receive a message from the server
    6. There will be one or more clients talking to the server.

Try in Python