CYSE 230 Study Guide - Computer Network Programming
Document Summary
I followed a video on how to create a socket program for the server and client files which is linked right here: https://www. youtube. com/watch?v=u4kr7efxakk. Here, i created a server file where i imported the socket library since python has a built-in library for socket programming called socket : This creates the socket with the function socket and calls for addresses: Binds the socket with an ip address and port number: Should output 3 connections- the number can be changed depending the number of connections to output based on user preference: While-loop for the socket connection when it is true: Prints the connections with the ip address and the name: This sends the connection between the server and client and message outputs welcome to. Client connection to the localhost with port 9999: When i run the file server. py on mac terminal, the output is socket created followed by.