Exemple #1
0
// NewServer creates a new server
func NewServer() *Server {
	srv := new(Server)
	srv.s = C.SPF_server_new(C.SPF_DNS_CACHE, 0)
	return srv
}
Exemple #2
0
// NewClient creates a new SPF client.
func NewClient() Client {
	client := new(clientImpl)
	client.s = C.SPF_server_new(C.SPF_DNS_RESOLV, 0)
	return client
}