Code Monkey home page Code Monkey logo

freebasic-ulfius's Introduction

FreeBASIC + Ulfius

A test to run ulfius on FreeBASIC

It uses ulfius with a few modifications to be able to run websockets without the need for (porting) gnutls to FB, as the porting would require a lot of headers.

(It still uses gnutls internally for hashing and other minor stuff).

It also required a few minimal modifications to fbfrog.

Base image

  • Dockerfile.base builds the base docker image;
  • ulfius-install.sh builds ulfius from the custom source, disabling GNUTLS, CURL and the client tools. It installs to /opt/ulfius to later copy to a new docker stage;
  • fbfrog-install.sh builds fbfrog from the custom source;
  • fbfrog-runner.sh runs the fbfrog commands to /opt/ulfius, to later be copied to another stage;
  • *.fbfrog fbfrog options;

Test service

  • test.bas a minimal test that shows the integration with ulfius, with JSON and websockets+JSON;
  • Dockerfile builds the test image, assumes base image is basic-ulfius;

There are some current limitations on running FreeBASIC as a Linux daemon, namely not being able to use pause and instead having to use the FB's sleep (wait for user input), which requires the container to be run as interactive (-ti).

There is also (apparently) no stderr, or at least not with the conventional numbers and not exposed to the FB's "api". It's probably possible to use with the standard C libraries.

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.