添加IFishHotpotUDPHelper

This commit is contained in:
xuemh
2018-08-06 17:58:03 +08:00
parent 65446cebfc
commit fc4062fbe8
4 changed files with 157 additions and 30 deletions
@@ -0,0 +1,30 @@
//
// IfishUDPBroadCastHelper.h
// Ifish
//
// Created by imac on 16/9/12.
// Copyright © 2016年 lianxiang. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AsyncUdpSocket.h"
@protocol IFishHotpotUDPHelperDelegate<NSObject>
- (void)udpHelperMessage:(NSString *)msg;
@end
@interface IFishHotpotUDPHelper : NSObject <AsyncUdpSocketDelegate>
@property (nonatomic, strong) AsyncUdpSocket *clientSocket;
+ (IFishHotpotUDPHelper *)sharedInstance;
@property (nonatomic,strong) NSTimer *loopTimer;
@property (nonatomic, weak) id<IFishHotpotUDPHelperDelegate> delegate;
-(void)broadCaseUDPWith:(NSString *)ssidName pwd:(NSString *)pwd;
@end