diff ServerComms.h @ 29:fabb3a5cdfc9

Timed session improvements. Desperate pathetic attempts to send a simple HTTP POST.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Fri, 22 Feb 2013 17:41:38 +0000
parents
children c0a6f7c66719
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ServerComms.h	Fri Feb 22 17:41:38 2013 +0000
@@ -0,0 +1,18 @@
+//
+//  ServerComms.h
+//  sonicZoom
+//
+//  Created by Robert Tubb on 21/02/2013.
+//
+//
+
+#import <Foundation/Foundation.h>
+
+@interface ServerComms : NSObject  <NSURLConnectionDelegate>
+-(void)test;
+-(void)postRequest:(NSString *)msgbody;
+
+- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response;
+- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data;
+- (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse;
+@end