//
//  NXDataUdpSocket.h
//  NXSdwan
//
//  Created by 任佳杰 on 2021/8/9.
//  Copyright © 2021 徐家骏. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol NXDataUdpSocketDelegate <NSObject>

- (void)receiveData:(NSData *)data;

@end

@interface NXDataUdpSocket : NSObject

@property (nonatomic, weak) id<NXDataUdpSocketDelegate> delegate;

- (instancetype)initHost:(NSString *)host port:(uint16_t)port;
- (void)sendData:(NSData *)data;

@end

NS_ASSUME_NONNULL_END
