search for: newconnection

Displaying 12 results from an estimated 12 matches for "newconnection".

Did you mean: new_connection
2017 May 17
2
Re: Callback re-registration after libvirtd restart
Hi Daniel, I tried that but it doesn't work: func libvirt_close_callback(conn *libvirt.Connect, reason libvirt.ConnectCloseReason){ log.Printf("close callback: %+v", reason) } func event_listen() { log.Printf("event_listen %s", conf.Libvirt.LocalUrl) hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl) err =
2017 May 17
2
Callback re-registration after libvirtd restart
Hi all, I'm using libvirt-go and I following code to listen for lifecycle events: func event_listen() { log.Printf("event_listen %s", conf.Libvirt.LocalUrl) hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl) lifecycleCallback := func(c *libvirt.Connect, d *libvirt.Domain, event *libvirt.DomainEventLifecycle) { event_message(c, d, "lifecycle", event)
2019 Feb 15
2
HELP!
I'm getting this error (below) [root@localhost test]# ./test virError(Code=6, Domain=20, Message='invalid connection pointer in virConnectListAllDomains') 0 running domains: when running this program :- (below) package main import ( "fmt" libvirt "github.com/libvirt/libvirt-go" ) type DomService struct { Conn *libvirt.Connect } func (d
2017 May 17
2
Re: Callback re-registration after libvirtd restart
No, I'm not, I'm calling it sooner: func libvirt_start() { libvirt.EventRegisterDefaultImpl() event_listen() } S pozdravom / Best regards Daniel Kucera. 2017-05-17 15:47 GMT+02:00 Daniel P. Berrange <berrange@redhat.com>: > On Wed, May 17, 2017 at 03:41:09PM +0200, Daniel Kučera wrote: > > Hi Daniel, > > > > I tried that but it doesn't
2019 Jan 03
1
Golang libvirt bindings problem
Hello everybody! First, allow me to wish you all a Happy New year! I have a problem with a small app that I wrote in Go and which uses libvirt go bindings. Actually, the problem exists only when I want to compile the code statically. Basically, when CGO_ENABLED=0 is exported, go (running go test, go run, go build) complains: undefined: libvirt.NewConnect When I try to compile the source
2017 May 17
0
Re: Callback re-registration after libvirtd restart
On Wed, May 17, 2017 at 03:08:23PM +0200, Daniel Kučera wrote: > Hi all, > > I'm using libvirt-go and I following code to listen for lifecycle events: > > func event_listen() { > log.Printf("event_listen %s", conf.Libvirt.LocalUrl) > hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl) > > lifecycleCallback := func(c *libvirt.Connect, d
2017 May 17
0
Re: Callback re-registration after libvirtd restart
On Wed, May 17, 2017 at 03:49:45PM +0200, Daniel Kučera wrote: > No, I'm not, I'm calling it sooner: > > func libvirt_start() { > libvirt.EventRegisterDefaultImpl() > event_listen() > } Well the following example works as expected for me package main import ( "github.com/libvirt/libvirt-go" "log" ) func
2017 May 17
0
Re: Callback re-registration after libvirtd restart
On Wed, May 17, 2017 at 03:41:09PM +0200, Daniel Kučera wrote: > Hi Daniel, > > I tried that but it doesn't work: > > func libvirt_close_callback(conn *libvirt.Connect, reason > libvirt.ConnectCloseReason){ > log.Printf("close callback: %+v", reason) > } > > func event_listen() { > log.Printf("event_listen %s",
2017 May 17
1
Re: Callback re-registration after libvirtd restart
2017-05-17 15:52 GMT+02:00 Daniel P. Berrange <berrange@redhat.com>: > On Wed, May 17, 2017 at 03:49:45PM +0200, Daniel Kučera wrote: > > No, I'm not, I'm calling it sooner: > > > > func libvirt_start() { > > libvirt.EventRegisterDefaultImpl() > > event_listen() > > } > > Well the following example works as expected for me
2019 Feb 15
0
Re: HELP!
Please consider writing more descriptive subjects. No need to shout, too. On Fri, Feb 15, 2019 at 08:43:36PM +0530, Shashwat shagun wrote: [...] >func (d *DomService) Connect() error { > var err error > d.Conn, err = libvirt.NewConnect("qemu:///system") > if err != nil { > fmt.Println(err) > } >defer d.Conn.Close() I
2000 Jul 10
0
RMySQL
Hi! I'm trying to test the RMySQL package (in Devel). The following error occured while trying to connet to our MySQL database: > m <- MySQL() > getDatabases(m) Error in newConnection.MySQLManager(dbMgr, ...) : MySQL driver: (could not open MySQL) > Does anybody know what the problem is? How to proceed? Thanks, Axel Vischer -- -------------- next part -------------- An HTML attachment was scrubbed... URL: https://stat.ethz.ch/pipermail/r-help/attachments/200007...
2010 Jul 31
1
How to connect R with SAP
Hello, Anyone knows if there is a way to connect R with the ERP SAP? Thanks. -- View this message in context: http://r.789695.n4.nabble.com/How-to-connect-R-with-SAP-tp2309018p2309018.html Sent from the R help mailing list archive at Nabble.com.