Displaying 5 results from an estimated 5 matches for "testconnection".
Did you mean:
test_connection
2020 Apr 24
1
[PATCH nbdkit] golang: Pass Plugin and Connection by reference not value.
...64, flags uint32) error {
panic("plugin CanZero returns true, but no Zero() function")
}
diff --git a/plugins/golang/test/test.go b/plugins/golang/test/test.go
index 7186ffa8..e585a971 100644
--- a/plugins/golang/test/test.go
+++ b/plugins/golang/test/test.go
@@ -52,15 +52,15 @@ type TestConnection struct {
var size uint64
var size_set = false
-func (p TestPlugin) Load() {
+func (p *TestPlugin) Load() {
nbdkit.Debug("golang code running in the .load callback")
}
-func (p TestPlugin) Unload() {
+func (p *TestPlugin) Unload() {
nbdkit.Debug("golang code running in the...
2012 Oct 02
1
Connection using Java
Hi,
I am using java to connect to the xen, but my class is throwing a
exception. Does anyone know what is happening?
public class TestConnection {
public static void main(String[] args) {
Connect conn = null;
try {
conn = new Connect("xen+ssh://root at 192.XXX.XXX.XX/", true);
libvir: RPC error : End of file while reading data: nc: invalid option --
'U'
nc -h for help: Input/output error
ex...
2020 Apr 23
2
Re: [PATCH nbdkit v2] Add the ability to write plugins in golang.
...USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+package main
+
+import (
+ "C"
+ "libguestfs.org/nbdkit"
+ "strconv"
+ "unsafe"
+)
+
+var pluginName = "test"
+
+type TestPlugin struct {
+ nbdkit.Plugin
+}
+
+type TestConnection struct {
+ nbdkit.Connection
+}
+
+var size uint64
+var size_set = false
+
+func (p TestPlugin) Load() {
+ nbdkit.Debug("golang code running in the .load callback")
+}
+
+func (p TestPlugin) Unload() {
+ nbdkit.Debug("golang code running in the .unload callback")
+}
+
+func (p T...
2015 Aug 15
2
wordpess can't connect to DB but mediawiki can
Hey guys,
I'm running both a wordpress site as well as a mediawiki off of the same
web servers. The mediawiki site works great! The wordpress site, meh. Not
so much. I keep getting the common database connection error:
Error establishing a database connection
And as far as I can tell the settings between the mediawiki site and the
wordpress site are nearly identical.
Here's the media
2020 Apr 21
2
[PATCH nbdkit v2] Add the ability to write plugins in golang.
Thanks: Dan Berrangé
XXX UNFINISHED:
- Is using uintptr for the handle a good idea? Plugins must return
something != 0. In other languages we would allow plugins to
return an arbitrary object here, but this is not possible in golang
because of lack of GC roots.
- Default can_* methods are hard to implement. Ideally we would be
able to test if a user plugin implements a