//
// IpuCountUDPHelper.h
// IpuCount
//
// Created by Mac on 2018/12/4.
// Copyright © 2018年 shelomi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "IpuUDPEcho.h"
#import "IpuGCDAsyncUdpSocket.h"
@interface IpuCountUDPHelper : NSObject<IpuGCDAsyncUdpSocketDelegate>//IpuUDPEchoDelegate
+ (instancetype) sharedInstance;
#pragma mark - 单条发送
/*
发送UDP消息,默认追加
*/
- (void)sendReport:(NSString*) content;
/*
发送UDP消息
content 日志内容
append 缓存到文件时,是否追加
*/
- (void)sendReport:(NSString *)content append:(BOOL)append;
#pragma mark - 批量发送
- (void)sendReports:(NSArray *)contents;
- (void)sendReports:(NSArray *)contents append:(BOOL)append;
@end
|