diff options
Diffstat (limited to 'VKPC/Server.h')
-rw-r--r-- | VKPC/Server.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/VKPC/Server.h b/VKPC/Server.h new file mode 100644 index 0000000..09157b5 --- /dev/null +++ b/VKPC/Server.h @@ -0,0 +1,27 @@ +// +// Server.h +// VKPC +// +// Created by Eugene on 11/29/13. +// Copyright (c) 2013 Eugene Z. All rights reserved. +// + +#import <Foundation/Foundation.h> + +typedef struct { + unsigned long receivedLength; + struct libwebsocket *wsi; + char *buffer; + NSInteger browser; + char *commandToSend; + unsigned long commandToSendLength; +} ServerSession; + +@interface Server : NSObject + ++ (void)start; ++ (BOOL)send:(NSString *)command forBrowser:(NSInteger)browser; ++ (NSThread *)thread; ++ (NSInteger)connectedCount:(NSInteger)browser; + +@end
\ No newline at end of file |