CustomiOSApi 1.11
CommPortWifi.h
1//
2// CommPortWifi.h
3// CustomiOSApi
4//
5// Created by CUSTOM on 04/07/13.
6// Copyright (c) 2013 CUSTOM. All rights reserved.
7//
8
9#import "CommPort.h"
10
11//Hide it in the documentation
12// @cond PRIVATE
13@interface CommPortWifi : CommPort
14{
15 @public
16
17
18
19 @protected
20
21 @private
22
23 NSInputStream *iStream;
24 NSOutputStream *oStream;
25
26 CFReadStreamRef readStream;
27 CFWriteStreamRef writeStream;
28
29 enum CommPortStatus commPortStatusWifi;
30 NSError *tmpErrorWifi;
31 NSMutableData* dataRXWifi;
32 Boolean mainThreadRunningWifi;
33 NSTimeInterval commWatchdogWifi;
34 NSMutableArray *iplistArrayWifi;
35}
36
37//***********************************************
38// PRIVATE FUNCTIONS
39//***********************************************
40-(NSArray *) EnumWifiDevices:(NSInteger)searchTimeout :(NSError**)error;
41- (int) WIFIConnect:(NSString*)printerIpAddr :(NSInteger)printerIpPort :(NSError**)error;
42-(Boolean) OpenSocketSuccesfully;
43
44- (void) ETHConnect:(NSString*)printerIpAddr :(NSInteger)printerIpPort :(NSError**)error;
45- (void) ETHDisconnect:(NSError**)error;
46- (void) ETHWrite:(NSData *)data :(NSError**)error;
47- (void) ETHWrite:(const uint8_t *)buf :(int)length :(NSError**)error;
48- (NSData *) ETHRead:(NSInteger)rxBufferSize :(NSError**)error;
49
50
51@end