Type/to search
1
Follow
0
Followers
호스트는 약간의 의심을 가지고 있습니다
Help
Created 2021-04-28 18:36:27  
 1
 1209

코드에 약간의 의문이 있습니다. 호스트는 go로 작성된 서버 메시지를 받아서 새로운 로봇을 <unk>습니다.exec.Command--fork가 시작되는 프로세스를 인식하고 있는지?

이상적으로 go를 구현하는 호스트, 정책은 또한 go 언어를 작성하여 플러그인 플러그인을 생성할 수 있으며, 호스트는 정책을 로컬로 업데이트하고, 로봇이 로딩됩니다.

func RunStrategy(){
...
p, err := plugin.Open("./logs/plugin/strategy_XXXXX.so")
if err != nil {
panic(err)
}
main, err := p.Lookup("StrategyMain")
main.(func())()
...
}

Related Recommendations
Comment
All comments (1)

    底层是封装过的,如果支持Go还要单独封装

    5 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)