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

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol YCKDataUdpSocketDelegate <NSObject>

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

@end

@interface YCKDataUdpSocket : NSObject

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

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

@end

NS_ASSUME_NONNULL_END
