MCPcopy Create free account
hub / github.com/dim-an/cod / apiPollUpdatesMain

Function apiPollUpdatesMain

commands.go:74–89  ·  view source on GitHub ↗
(pid uint)

Source from the content-addressed store, hash-verified

72}
73
74func apiPollUpdatesMain(pid uint) {
75 app := NewApplication()
76 defer app.Close()
77
78 req := server.PollUpdatesRequest{
79 Pid: int(pid),
80 }
81 rsp := server.PollUpdatesResponse{}
82
83 err := app.Client().Request(&req, &rsp)
84 verifyFatal(err)
85
86 for _, line := range rsp.Script {
87 fmt.Println(line)
88 }
89}
90
91func apiPostexecMain(pid uint, command string) {
92 app := NewApplication()

Callers 1

mainFunction · 0.85

Calls 5

CloseMethod · 0.95
ClientMethod · 0.95
NewApplicationFunction · 0.85
verifyFatalFunction · 0.85
RequestMethod · 0.80

Tested by

no test coverage detected