ObjFW
Loading...
Searching...
No Matches
OFBindDDPSocketFailedException.h
1/*
2 * Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
3 *
4 * All rights reserved.
5 *
6 * This file is part of ObjFW. It may be distributed under the terms of the
7 * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
8 * the packaging of this file.
9 *
10 * Alternatively, it may be distributed under the terms of the GNU General
11 * Public License, either version 2 or 3, which can be found in the file
12 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
13 * file.
14 */
15
16#import "OFBindSocketFailedException.h"
17
18OF_ASSUME_NONNULL_BEGIN
19
27OF_SUBCLASSING_RESTRICTED
29{
30 uint16_t _network;
31 uint8_t _node, _port, _protocolType;
32}
33
37@property (readonly, nonatomic) uint16_t network;
38
42@property (readonly, nonatomic) uint8_t node;
43
47@property (readonly, nonatomic) uint8_t port;
48
52@property (readonly, nonatomic) uint8_t protocolType;
53
65+ (instancetype)exceptionWithNetwork: (uint16_t)network
66 node: (uint8_t)node
67 port: (uint8_t)port
68 protocolType: (uint8_t)protocolType
69 socket: (id)socket
70 errNo: (int)errNo;
71
72+ (instancetype)exceptionWithSocket: (id)socket
73 errNo: (int)errNo OF_UNAVAILABLE;
74
86- (instancetype)initWithNetwork: (uint16_t)network
87 node: (uint8_t)node
88 port: (uint8_t)port
89 protocolType: (uint8_t)protocolType
90 socket: (id)socket
91 errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
92
93- (instancetype)initWithSocket: (id)socket errNo: (int)errNo OF_UNAVAILABLE;
94@end
95
96OF_ASSUME_NONNULL_END
An exception indicating that binding a DDP socket failed.
Definition OFBindDDPSocketFailedException.h:29
An exception indicating that binding a socket failed.
Definition OFBindSocketFailedException.h:33