Code Monkey home page Code Monkey logo

sda3-sockets's Introduction

Actividad #3 para sistemas distribuidos: Trabajemos con sockets.

Este es un script escrito en python 3.9.5 que realiza conexiones udp y tcp a un servidor dado, se ejecuta utilizando el interprete de python py, el script espera recibir los siguiente parámetros, si no usará los valores configurados por defecto.

Variables esperadas: (variable : -argumento_corto, --argumento_largo)

host_ip : -h , --host_ip=

host_port : -p, --host_port=

client_ip : -c, --client_ip=

client_udp_port : -u, --client_udp_port

user : -o, --user

Valores por defecto:

HOST_IP = '127.0.0.1'

CLIENT_IP = '127.0.0.1'

HOST_PORT = 19876

USER = 'usuario_1'

CLIENT_UDP_PORT = 19877

Uso (Windows):

    En el terminal del windows, cmd o ps ejecutar el siguiente codigo:
    Modelo:
    py getmymsg-client.py -h <host_ip> -p <host_port> -c <client_ip> -u <client_udp_port> -o <user>
    Ejemplo:
    py getmymsg-client.py -h 127.0.0.1 -p 19876 -c 127.0.0.1 -u 19877 -o usuario_1 

sda3-sockets's People

Contributors

islidex avatar

Watchers

 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.