Code Monkey home page Code Monkey logo

chat's Introduction

Program: quickchat

Written by: Ava Cordero
Date: 10/25/2019
Latest:11/5/2019

Description:

A simple chat client/server application that works for one pair of users.

Usage:

chatserver

To start the chat server, use the following command, where portnumber is the port on the local machine you want to accept connections from:

$ chatserve.py portnumber

If the port is open, the server initializes. When the server starts, the user is prompted for a handle with a maximum of 10 characters. It then binds the socket to the port and then begins listening for a connection. Once a client has established a new connection, the chat session begins. Messages can then be exchanged between the client and the server-client, one at a time. If either party enters send message \quit the connection is ended. The server then continues to wait for new connections.

chatclient

To open a client connection to the server, use the following command, where servername is the hostname of the machine running the server, and portnumber is the server port number to connect to.

$ chatclient.py servername portnumber

When the client starts, the user is prompted for a handle with a maximum of 10 characters. It then connects to the server at the specified port. Once the client has established a new connection, the chat session begins. Messages can then be exchanged between the client and the server-client, one at a time. If either party enters send message \quit the connection is ended and the client exits.

chat's People

Watchers

Luna Cordero avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.