Skip to content

Commit

Permalink
Add missing headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszstompor committed Oct 13, 2024
1 parent 9cf5b19 commit d0af52d
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AsyncTCP.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
#

spec.name = "AsyncTCP"
spec.version = "1.0.0"
spec.version = "1.0.1"
spec.summary = "Lightweight, simple and asynchronous TCP sockets"

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 2 additions & 0 deletions AsyncTCP/Client/ClientConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#import <Foundation/Foundation.h>

#import <sys/types.h>

NS_ASSUME_NONNULL_BEGIN

@interface ClientConfiguration: NSObject
Expand Down
2 changes: 2 additions & 0 deletions AsyncTCP/Connection/Connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#import <Foundation/Foundation.h>

#import <sys/types.h>

#import "Lockable.h"
#import "Identity.h"
#import "Dispatchable.h"
Expand Down
1 change: 1 addition & 0 deletions AsyncTCP/Connection/Identity.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#import <Foundation/Foundation.h>

#import <netdb.h>
#import <sys/socket.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 2 additions & 0 deletions AsyncTCP/NetworkManager/NetworkManageable.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#import <Foundation/Foundation.h>

#import <sys/types.h>

#import "Identity.h"

NS_ASSUME_NONNULL_BEGIN
Expand Down
2 changes: 2 additions & 0 deletions AsyncTCP/Server/ServerConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#import <Foundation/Foundation.h>

#import <sys/types.h>

NS_ASSUME_NONNULL_BEGIN

@interface ServerConfiguration: NSObject
Expand Down
2 changes: 2 additions & 0 deletions AsyncTCP/Wrappers/DispatchQueue/Dispatchable.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2019 Mateusz Stompór. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol Dispatchable<NSObject>
Expand Down
1 change: 1 addition & 0 deletions AsyncTCP/Wrappers/Network/NetworkWrappable.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

#import <Foundation/Foundation.h>
#import <sys/socket.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 2 additions & 0 deletions AsyncTCP/Wrappers/SocketOptions/SocketOptionsWrappable.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2019 Mateusz Stompór. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol SocketOptionsWrappable<NSObject>
Expand Down
2 changes: 2 additions & 0 deletions AsyncTCP/Wrappers/System/SystemWrappable.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#import <Foundation/Foundation.h>

#import <sys/types.h>

NS_ASSUME_NONNULL_BEGIN

@protocol SystemWrappable
Expand Down
4 changes: 3 additions & 1 deletion AsyncTCP/Wrappers/Thread/Thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
NS_ASSUME_NONNULL_BEGIN

@interface Thread: NSObject<Threadable>
-(instancetype)initWithTarget:(id)target selector:(SEL)selector object:(nullable id)argument;
-(instancetype)initWithTarget:(id)target
selector:(SEL)selector
object:(nullable id)argument;
@end

NS_ASSUME_NONNULL_END
2 changes: 2 additions & 0 deletions AsyncTCP/Wrappers/Thread/Threadable.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2019 Mateusz Stompór. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol Threadable<NSObject>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#import <XCTest/XCTest.h>
#import <AsyncTCP/AsyncTCP.h>
#import <sys/socket.h>

@interface SocketPortCollisionTests: XCTestCase
{
Expand Down
1 change: 1 addition & 0 deletions AsyncTCPTests/Utilities/TCPTestsClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#import "TCPTestsClient.h"

#import <netdb.h>
#import <sys/socket.h>

@interface TCPTestsClient()
{
Expand Down

0 comments on commit d0af52d

Please sign in to comment.