A Simple Method of Updating Ports Tree

Time:2019-8-23

#vi /etc/protsnap.conf

SERVERNAME = portsnap. freebsd. ORG

Change to portsnap.tw.freebsd.org

# Portsnap fetch

# Portsnap extract

Until it appears

Building new INDEX files…..done.
 

Recommended Today

Build HTTP service with C + + Mongoose

Mongoose source code address:https://github.com/cesanta/mo… Mongoose user manual:https://www.cesanta.com/devel… Mngoose set up HTTP service #include <string> #include “mongoose.h” using namespace std; static const char *s_http_port = “8000”; static void ev_handler(mg_connection *nc, int ev, void *ev_data) { struct http_message *hm = (struct http_message *) ev_data; if (ev == MG_EV_HTTP_REQUEST) { std::string uri; if (hm->uri.p && hm->uri.p[0] == ‘/’) […]