func (p *Proxy) SetCapture(endpoint string) error {
	cmd := C.CString("CAPTURE")
	defer C.free(unsafe.Pointer(cmd))

	cEndpoint := C.CString(endpoint)
	defer C.free(unsafe.Pointer(cEndpoint))

	rc := C.zstr_sendm(unsafe.Pointer(p.zactorT), cmd)
	if rc == -1 {
		return ErrActorCmd
	}

	rc = C.zstr_send(unsafe.Pointer(p.zactorT), cEndpoint)
	if rc == -1 {
		return ErrActorCmd
	}

	return nil
}
// SetCapture accepts a socket endpoint and sets up a Push socket bound
// to that endpoint, that sends a copy of all messages passing through
// the proxy.
SetCapture accepts a socket endpoint and sets up a Push socket bound
to that endpoint, that sends a copy of all messages passing through
the proxy.
// SetCapture accepts a socket endpoint and sets up a Push socket bound // to that endpoint that sends a copy of all messages passing through // the proxy .
func (p *Proxy) SetCapture(endpoint string) error {
	cmd := C.CString("CAPTURE")
	defer C.free(unsafe.Pointer(cmd))
	cEndpoint := C.CString(endpoint)
	defer C.free(unsafe.Pointer(cEndpoint))
	rc := C.zstr_sendm(unsafe.Pointer(p.zactorT), cmd)
	if rc == -1 {
		return ErrActorCmd
	}
	rc = C.zstr_send(unsafe.Pointer(p.zactorT), cEndpoint)
	if rc == -1 {
		return ErrActorCmd
	}
	return nil
}
func ( p * Proxy ) SetCapture ( endpoint string ) error { cmd := C . CString ( " " ) defer C . free ( unsafe . Pointer ( cmd ) ) cEndpoint := C . CString ( endpoint ) defer C . free ( unsafe . Pointer ( cEndpoint ) ) rc := C . zstr_sendm ( unsafe . Pointer ( p . zactorT ) , cmd ) if rc == - 1 { return ErrActorCmd } rc = C . zstr_send ( unsafe . Pointer ( p . zactorT ) , cEndpoint ) if rc == - 1 { return ErrActorCmd } return nil }
SetCapture accepts a socket endpoint and sets up a Push socket bound
to that endpoint, that sends a copy of all messages passing through
the proxy.
SetCapture accepts a socket endpoint and sets up a Push socket bound to that endpoint that sends a copy of all messages passing through the proxy .