添加IFishHotpotUDPHelper
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user