• 大小: 12.66M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-19
  • 语言: 其他
  • 标签: 其他  

资源简介

zhajinhuaTutorial-master.zip

资源截图

代码片段和文件信息

#include “../src/uWS.h“
#include “addon.h“
#include “http.h“

void Main(Localject> exports) {
    Isolate *isolate = exports->GetIsolate();

    exports->Set(String::NewFromUtf8(isolate “server“) Namespace(isolate).object);
    exports->Set(String::NewFromUtf8(isolate “client“) Namespace(isolate).object);
    exports->Set(String::NewFromUtf8(isolate “httpServer“) HttpServer::getHttpServer(isolate));

    NODE_SET_METHOD(exports “setUserData“ setUserData);
    NODE_SET_METHOD(exports “getUserData“ getUserData);
    NODE_SET_METHOD(exports “clearUserData“ clearUserData);
    NODE_SET_METHOD(exports “getAddress“ getAddress);

    NODE_SET_METHOD(exports “transfer“ transfer);
    NODE_SET_METHOD(exports “upgrade“ upgrade);
    NODE_SET_METHOD(exports “connect“ connect);
    NODE_SET_METHOD(exports “setNoop“ setNoop);
    registerCheck(isolate);
}

NODE_MODULE(uws Main)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-12 15:02  zhajinhuaTutorial-master\
     文件          12  2017-09-12 15:02  zhajinhuaTutorial-master\.gitignore
     目录           0  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\
     目录           0  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\.idea\
     文件         281  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\.idea\codestyleSettings.xml
     文件         298  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\.idea\modules.xml
     文件       41708  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\.idea\workspace.xml
     文件         458  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\.idea\zhajinhuaServerTutorial.iml
     文件        1257  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\app.js
     目录           0  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\bin\
     文件        1684  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\bin\www
     目录           0  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\game\
     文件        5722  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\game\card-controller.js
     文件         222  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\game\card.js
     文件         328  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\game\defines.js
     文件        1198  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\game\event-listener.js
     文件        3500  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\game\player.js
     文件        4410  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\game\room.js
     文件         750  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\game\socket-server.js
     目录           0  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\node_modules\
     目录           0  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\node_modules\.bin\
     文件         301  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\node_modules\.bin\acorn
     文件         172  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\node_modules\.bin\acorn.cmd
     文件         315  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\node_modules\.bin\cleancss
     文件         186  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\node_modules\.bin\cleancss.cmd
     文件         303  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\node_modules\.bin\jade
     文件         174  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\node_modules\.bin\jade.cmd
     文件         293  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\node_modules\.bin\mime
     文件         164  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\node_modules\.bin\mime.cmd
     文件         305  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\node_modules\.bin\mkdirp
     文件         176  2017-09-12 15:02  zhajinhuaTutorial-master\zhajinhuaServerTutorial\node_modules\.bin\mkdirp.cmd
............此处省略1751个文件信息

评论

共有 条评论