// Unbind unbinds a socket from an endpoint. If returns // an error if the endpoint was not found func (s *Sock) Unbind(endpoint string) error { rc := C.Sock_unbind(s.zsockT, C.CString(endpoint)) if int(rc) == -1 { return ErrUnbind } return nil }
// Unbind unbinds a socket from an endpoint. If returns // an error if the endpoint was not found func (s *Sock) Unbind(endpoint string) error { rc := C.Sock_unbind(s.zsockT, C.CString(endpoint)) if int(rc) == -1 { return fmt.Errorf("endopint was not bound") } return nil }