29 lines
538 B
Objective-C
29 lines
538 B
Objective-C
//
|
|
// SocketDelegate.h
|
|
// Brokenithm-iOS
|
|
//
|
|
// Created by ester on 2020/2/29.
|
|
// Copyright © 2020 esterTion. All rights reserved.
|
|
//
|
|
|
|
#ifndef SocketDelegate_h
|
|
#define SocketDelegate_h
|
|
|
|
@class ViewController;
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import <CocoaAsyncSocket/GCDAsyncSocket.h>
|
|
#import "ViewController.h"
|
|
|
|
@interface SocketDelegate : NSObject {
|
|
GCDAsyncSocket *server;
|
|
NSMutableArray<GCDAsyncSocket*> *connectedSockets;
|
|
}
|
|
@property ViewController *parentVc;
|
|
|
|
- (void)updateIO:(NSData*)io;
|
|
|
|
@end
|
|
|
|
#endif /* SocketDelegate_h */
|