search for: testconnect

Displaying 5 results from an estimated 5 matches for "testconnect".

Did you mean: netconnect
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 t...
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...
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 (...
2015 Aug 15
2
wordpess can't connect to DB but mediawiki can
...nnect to the database <?php $link = mysql_connect('db.example.com', 'admin_ssl', 'secret'); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; mysql_close($link); ?> And to my surprise it can't connect! php testconnect.php Could not connect: Access denied for user 'admin_ssl'@'ec2-54-86-143-49.compute-1.amazonaws.com' (using password: YES) Why am I surprised that it can't? Because again 1) the wiki can connect to the database no problem. And 2) I can connect to the db on the command line usin...
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