ifish/Ifish/controllers/IfishYooseeFile/IfishYooseeHelper/IfishYooseeP2PCore/ShakeManager.h

29 lines
727 B
Objective-C

//
// ShakeManager.h
// Yoosee
//
// Created by guojunyi on 14-7-25.
// Copyright (c) 2014年 guojunyi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "GCDAsyncUdpSocket.h"
@protocol ShakeManagerDelegate <NSObject>
-(void)onReceiveLocalDevice:(NSString*)contactId type:(NSInteger)type flag:(NSInteger)flag address:(NSString*)address;
-(void)onSearchEnd;
@end
@interface ShakeManager : NSObject
@property (strong, nonatomic) GCDAsyncUdpSocket *socket;
@property (nonatomic) BOOL isSearching;
@property (nonatomic) NSInteger searchTime;
@property (assign) id<ShakeManagerDelegate> delegate;
+ (id)sharedDefault;
-(BOOL)search;
-(int)ApModeGetID;
-(BOOL)ApModeSetWifiPassword:(NSString*)password;
@end