I'm sorry but I'm not familiar with the API you're trying to use. What
do you want to put in to "params"?
I can help you if you want to connect a Java client to cspoker.

2008/9/8 Loic Dachary <[EMAIL PROTECTED]>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> nikita wrote:
>> Can someone show a working example on Java of this code in Python:
>>
>> /import xmlrpclib server = "localhost" service =
>> xmlrpclib.Server('http://%s:19382/RPC2' % server) results =
>> service.handlePacket('use sessions', { 'type':
>> 'PacketPokerTableSelect', 'string' : table}) for table in
>> results[0]['packets']: print table['name']/
>>
>>
>> So far I have this on Java and i don't know how to form /params
>> /variable:
>>
>> /import org.apache.xmlrpc.client.XmlRpcClient; import
>> org.apache.xmlrpc.client.XmlRpcClientConfigImpl; import java.net.*;
>>
>>
>> public class Test {
>>
>> public static void main( String args[] ) throws Exception {
>> XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
>> config.setServerURL(new URL("http://127.0.0.1:19382/RPC2";));
>> XmlRpcClient client = new XmlRpcClient(); client.setConfig(config);
>>  Object[] params = new Object[]{}; } }/
>>
> Although Guy (in cc) is running another fine poker project (cspoker)
> he is a skilled Java developer and may be willing to help you.
>
> Cheers
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkjEbh0ACgkQ8dLMyEl6F22c1QCfazelwXzKZWYW/eYhFChiP4k3
> zj8An2NdA+Crs6K9wKMCAwojGhxO2w1R
> =ivAO
> -----END PGP SIGNATURE-----
>
>

_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to