(ip string, port int, opts ...ClientOption)
| 111 | } |
| 112 | |
| 113 | func NewTLSClient(ip string, port int, opts ...ClientOption) ziface.IClient { |
| 114 | |
| 115 | c, _ := NewClient(ip, port, opts...).(*Client) |
| 116 | |
| 117 | c.useTLS = true |
| 118 | |
| 119 | return c |
| 120 | } |
| 121 | |
| 122 | // notify error unblock |
| 123 | func (c *Client) notifyErr(err error) { |