blob: 09157b563df60d3b7ab5e027f2a10506ed16a272 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
|