WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] Need help with the C binding for local session creation

To: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>, Goncalo Gomes <Goncalo.Gomes@xxxxxxxxxxxxx>
Subject: [Xen-API] Need help with the C binding for local session creation
From: "Sane, Abhijeet" <Abhijeet_Sane@xxxxxxx>
Date: Fri, 12 Feb 2010 08:37:37 -0600
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Fri, 12 Feb 2010 06:38:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acqr8Ow/cBqa5BsaQSyi+MgJVxpD1w==
Thread-topic: Need help with the C binding for local session creation
Hi,
I am using the Xen Server C SDK to develop a application that will run on Xen 
Server host machine itself. I understand from the explanation given by Goncalo 
Gomes that C SDK does not allow connection to Unix Domain Socket ( 
/var/xapi/xapi) only TCP/IP connections are supported which require as username 
/ password.


Can somebody guide me what all needs to be implemented to make sure I am able 
to connect to the unix domain socket and also that my Xen SDK calls like 
xen_host_get_record , xen_vm_get_record continue to work.

I think we need to write code to send and receive XMLHTTP messages in the 
‘call_func’ function which we pass to the ‘xen_session_login_with_password’ 
function.  Wrote the code in my ‘call_func’ function but I think something is 
missing in that code as all I get is a crash.. Signal 11..

Any guidelines , pointers , working sample code are welcome.

Warm Regards
Abhijeet









_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>