Close closes the connection to the caster.
()
| 188 | |
| 189 | // Close closes the connection to the caster. |
| 190 | func (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 |