34 lines
832 B
Objective-C
34 lines
832 B
Objective-C
//
|
|
// IfishUDPBroadCastHelper.h
|
|
// Ifish
|
|
//
|
|
// Created by imac on 16/9/12.
|
|
// Copyright © 2016年 lianxiang. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "AsyncUdpSocket.h"
|
|
#import "IFishUDPHelperBackMsgModel.h"
|
|
|
|
@protocol IFishHotpotUDPHelperDelegate<NSObject>
|
|
|
|
@optional
|
|
- (void)udpHelperMessage:(NSString *)msg;
|
|
- (void)udpHelperCommandExecutedSuccess:(IFishUDPHelperBackMsgModel *)backModel;
|
|
|
|
@end
|
|
|
|
@interface IFishHotpotUDPHelper : NSObject <AsyncUdpSocketDelegate>
|
|
|
|
@property (nonatomic, strong) AsyncUdpSocket *clientSocket;
|
|
|
|
+ (IFishHotpotUDPHelper *)sharedInstance;
|
|
|
|
@property (nonatomic, weak) id<IFishHotpotUDPHelperDelegate> delegate;
|
|
|
|
- (void)broadCastHotspotConnectCommandWith:(NSString *)ssidName pwd:(NSString *)pwd;
|
|
- (void)broadCastRestartCommand;
|
|
- (void)broadCastRestCommand;
|
|
|
|
@end
|