当前位置:网站首页>Run Skynet for the first time
Run Skynet for the first time
2022-06-11 03:38:00 【sayWhat_ sayHello】
Preface
It was written half a year ago , I'm syncing to the line now ~ If there is no error in the content, it has not been modified . The following sentence was also written at that time .
Tell the truth ,skynet I've never been in touch with , Even lua I just read some basics ,C I studied for a semester in class five years ago . But I believe I can accomplish these challenges .
Text
The previous section has been completed skynet 了 . This section explores skynet Start of .
In the project README.md We can see that the test steps after successful installation are :
Run these in different consoles:
./skynet examples/config # Launch first skynet node (Gate server) and a skynet-master (see config for standalone option)
./3rd/lua/lua examples/client.lua # Launch a client, and try to input hello.
Run under different consoles :
,/skynet examples/config # Load first skynet node ( Gate server ) and skynet-master( see config If you need independent options )
./3rd/lua/lua examples/client.lua # Load the client , Try typing hello


Input hello, It should be noted that I have entered it twice hello, At first I typed hell I jumped out of REQUEST heartbeat I was stunned before I entered o.

Switch back to the original window and find a new output here :
Roughly based on the output, I guess that the client is every 5 Communicate with the server once every second , Then print one REQUEST heartbeat, Plus send a specific statement hello, The server will return world. You must look at the source code .
Here I tried to kill skynet process :

Then cut back to find :
Then I tried :

I looked up the source of this paragraph , As you can see, yes :
So , We started the journey of source code reading .
边栏推荐
- has been blocked by CORS policy: No ‘Access-Control-Allow-Origin‘ header is present on the requested
- Logical deletion_ Swagger2 framework integration
- js最常用的排序---手撕js系列
- Database design specification
- The tide play power is really firepower! The first big screen cinema for young people? Cool open TV Max 86 "sudden attack
- OpenSSL enc encryption and decryption
- canvas绘图——如何把图形放置画布中心
- Canvas+svg line particle animation web page background
- Mavros controls UAV to conduct binocular slam in gazebo environment
- J. Balanced Tree
猜你喜欢
随机推荐
J. Balanced Tree
SSL库选择
J. Balanced Tree
多线程四部曲之NSThread
Xu Li 618, how can Suning fight this hard battle?
Le tri le plus couramment utilisé de JS - - série JS déchiquetée à la main
用Fragment实现图片简易浏览
JSCPCP L. Collecting Diamonds(思维)
RequestContextHolder
Checkbox beautify button selected style
LaTex环境下在TexStudio中使用minted插入高亮代码
iQOO 8实测上手体验:王者归来,从不高调
Canvas drawing -- how to place the drawing in the center of the canvas
Integrated MP code generator
The key data of music genuine rate is missing. What is the odds of Netease cloud music IPO?
js最常用的排序---手撕js系列
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
实现发布订阅模式-----手撕js系列
Parameter transfer format when the parameter of PostgreSQL function is a user-defined type
Lianyirong (passed)








