-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Attached file is test file to sea when GSXMLRPC is released - so that
related socket will be closed. I've added code(NSLog(@"dealloc")) to
GSXMLRPC's dealloc and GSHTTPURLHandle's dealloc. But I cannot see the
message. And this causes problem because the program which uses GSXMLRPC
uses more and more sockets.
What should I do for close GSXMLRPC/GSHTTPURLHandle?
Can anyone help me on this?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF9kgtQqspS1+XJHgRAnykAJ40wxWcUzkvbGgN7g85aiMV0sDV2gCgt0nD
JLTBkaIvNkFz43+G9XncmZQ=
=Ofg0
-----END PGP SIGNATURE-----
#import <Foundation/Foundation.h>
#import <GNUstepBase/GSXML.h>
static void
_callServer (void) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
GSXMLRPC *server = [[(GSXMLRPC *)[GSXMLRPC alloc] initWithURL:
@"http://192.168.1.42:8180/mlm/xmlrpc"] autorelease];;
NSMutableArray *params = [NSMutableArray array];
id result;
[params addObject: @"HELLO, WORLD!"];
result = [server makeMethodCall: @"test.echo"
params: params
timeout: 2];
NSLog(@"%@", result);
[pool release];
}
int
main (int argc, const char *argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
_callServer();
//[[NSRunLoop currentRunLoop] run];
//while (1);
fprintf(NULL, " ");
[pool release];
return 0;
}
_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep