Git Product home page Git Product logo

onlieprogrammingserver's Introduction

example example

OnlieProgrammingServer

一个轻量级在线编程服务器

可以对C/C++、python等语言进行在线的编译或运行

编译结果和程序的输出结果会回复给客户端


具体流程:

  1.客户端连接服务器

  2.客户端发送HTTP请求(PUT)

  3.服务器获取该请求的数据包data
  
  4.服务器获取数据包中的信息并以此为一个单独的连接建立文件夹

  5.服务器进入该文件夹并创建程序文件,将编译结果和运行结果重复定向至文件中

  6.将编译结果和程序执行结果写回给客户端

  7.服务器删除客户端的文件夹

项目包含


测试效果展示:

服务器启动

image

C语言测试

image image

C++测试

image image

python测试

image image


测试效果展示:[HTTP]

C测试

image image

C++测试

image image

C++测试

image image


未完成...

目前还缺少网页版,由于本人并不擅长制作网页,因此http的请求是使用postman模拟发出的,后续有机会会完善网页版。

关键词:C/S模型、libevent、HTTP、多线程、重定向、守护进程、信号处理

user:Sakura7301

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.