GithubHelp home page GithubHelp logo

hft_sandbox's Introduction

Ticker Server and Client

This project contains a server (TickerServer) and a client (TickerClient) that communicate over TCP using the Boost.Asio library. The server generates a stream of asset prices and sends them to the client.

Project Structure

Client/
    Dockerfile
    Makefile
    TickerClient
    TickerClient.cpp
Server/
    Dockerfile
    Makefile
    TickerServer
    TickerServer.cpp
README.md

Building the Project

Server

To build and run the server, navigate to the Server/ directory and use the following commands:

docker build -t tickerserver -f Dockerfile .
docker run -p 1234:1234 -d tickerserver

This will build a Docker image for the server and run it in a new container. The server listens for connections on port 1234.

Client

To build and run the client, navigate to the Client/ directory and use the following commands:

docker build -t tickerclient -f Dockerfile .
docker run -d tickerclient

This will build a Docker image for the client and run it in a new container. The client connects to the server at the IP address specified in TickerClient.cpp.

Note

The client and server are designed to run on the same machine. If you want to run them on different machines, you need to update the IP address in TickerClient.cpp to the IP address of the machine running the server.

License

This project is licensed under the MIT License.

hft_sandbox's People

Contributors

pedrogabrielbhz avatar

Stargazers

HeinrichFT 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.