Skip to content

Commit

Permalink
Merge pull request #463 from AntonBelousov/developer
Browse files Browse the repository at this point in the history
fix error nullability declaration for more correct declaration in swift
  • Loading branch information
chrisballinger authored Aug 16, 2016
2 parents b392b5c + 9eb4a65 commit f3cf8a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/GCD/GCDAsyncUdpSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ typedef NS_ENUM(NSInteger, GCDAsyncUdpSocketError) {
* This method is called if one of the connect methods are invoked, and the connection fails.
* This may happen, for example, if a domain name is given for the host and the domain name is unable to be resolved.
**/
- (void)udpSocket:(GCDAsyncUdpSocket *)sock didNotConnect:(NSError *)error;
- (void)udpSocket:(GCDAsyncUdpSocket *)sock didNotConnect:(NSError * _Nullable)error;

/**
* Called when the datagram with the given tag has been sent.
Expand All @@ -66,7 +66,7 @@ typedef NS_ENUM(NSInteger, GCDAsyncUdpSocketError) {
* Called if an error occurs while trying to send a datagram.
* This could be due to a timeout, or something more serious such as the data being too large to fit in a sigle packet.
**/
- (void)udpSocket:(GCDAsyncUdpSocket *)sock didNotSendDataWithTag:(long)tag dueToError:(NSError *)error;
- (void)udpSocket:(GCDAsyncUdpSocket *)sock didNotSendDataWithTag:(long)tag dueToError:(NSError * _Nullable)error;

/**
* Called when the socket has received the requested datagram.
Expand All @@ -78,7 +78,7 @@ typedef NS_ENUM(NSInteger, GCDAsyncUdpSocketError) {
/**
* Called when the socket is closed.
**/
- (void)udpSocketDidClose:(GCDAsyncUdpSocket *)sock withError:(NSError *)error;
- (void)udpSocketDidClose:(GCDAsyncUdpSocket *)sock withError:(NSError * _Nullable)error;

@end

Expand Down

0 comments on commit f3cf8a6

Please sign in to comment.