| CustomiOSApi 1.06

- Main Page
- Classes

All Classes Functions Enumerations Enumerator Pages
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
30 //***********************************************
31 // PRIVATE FUNCTIONS
32 //***********************************************
33 -(NSArray *) EnumWifiDevices:(NSInteger)searchTimeout :(NSError**)error;
34 - (int) WIFIConnect:(NSString*)printerIpAddr :(NSInteger)printerIpPort :(NSError**)error;
35 -(Boolean) OpenSocketSuccesfully;
36
37 - (void) ETHConnect:(NSString*)printerIpAddr :(NSInteger)printerIpPort :(NSError**)error;
38 - (void) ETHDisconnect:(NSError**)error;
39 - (void) ETHWrite:(NSData *)data :(NSError**)error;
40 - (void) ETHWrite:(const uint8_t *)buf :(int)length :(NSError**)error;
41 - (NSData *) ETHRead:(NSInteger)rxBufferSize :(NSError**)error;
42
43
44 @end