75d24c15
yangbin
123
|
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
28
|
//
// Linker.h
// MTKBleManager
//
// Created by user on 11/6/14.
// Copyright (c) 2014 ___MTK___. All rights reserved.
//
#import <Foundation/Foundation.h>
const static int LINKER_IDLE = 0;
const static int LINKER_WRITING = 1;
const static int STATE_NONE = 0;
const static int STATE_LISTEN = 1;
const static int STATE_CONNECTING = 2;
const static int STATE_CONNECTED = 3;
const static int STATE_CONNECT_FAIL = 4;
const static int STATE_CONNECT_LOST = 5;
const static int STATE_DISCONNECTING = 6;
@interface Linker : NSObject
- (void) setSentSize: (int)sentSize Tag: (NSString *)tag;
- (void) changeDataBuffer: (int)SessionDataSize;
- (void) write: (NSData *)data;
@end
|