CYSE 230 Study Guide - Computer Network Programming

14 views4 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions