UniPRT SDK v1.0.0.0
 
載入中...
搜尋中...
無符合項目
JsonConnection.h
1//
2// JsonConnection.h
3// TSCPrinters SDK
4//
5// Created by Realbuber on 2024/4/8.
6//
7
8#ifndef JsonConnection_h
9#define JsonConnection_h
10
11
12#endif /* JsonConnection_h */
13
14#import <Foundation/Foundation.h>
15#import <UniPRT/TcpComm.h>
16#import <UniPRT/JsonComm.h>
17
25@interface JsonConnection : NSObject {
26 NSInteger _userCount;
27 NSString *_descriptor;
28 TcpComm *_tcpComm;
29 JsonComm *_jsonComm;
30 BOOL _disposed;
31}
32
39- (instancetype)initWithCommDescriptor:(NSString *)commDescriptor;
40
46- (NSInteger)addUser;
47
53- (NSInteger)removeUser;
54
60- (NSInteger)getUserCount;
61
67- (NSString *)getDescriptor;
68
72- (void)dispose;
73
79- (TcpComm *)getPtrComm;
80
86- (JsonComm *)getJsonComm;
87
88@end
89
一個用於 TCP 通信的類,繼承自 AComm 並符合 NSStreamDelegate 協議。
Definition TcpComm.h:101