MCPcopy Create free account
hub / github.com/facebook/time / Close

Method Close

ntrip/client.go:190–197  ·  view source on GitHub ↗

Close closes the connection to the caster.

()

Source from the content-addressed store, hash-verified

188
189// Close closes the connection to the caster.
190func (c *Client) Close() error {
191 if c.conn == nil {
192 return nil
193 }
194 err := c.conn.Close()
195 c.conn = nil
196 return err
197}
198
199// Write sends raw RTCM data to the caster. In NTRIP v2 chunked mode each call
200// is wrapped in a single HTTP chunk. The dump (if any) always receives the raw

Callers 3

TestClientCloseNilFunction · 0.95
TestClientCloseFunction · 0.95

Calls 1

CloseMethod · 0.65

Tested by 3

TestClientCloseNilFunction · 0.76
TestClientCloseFunction · 0.76