ObjFW
Loading...
Searching...
No Matches
OFBindIPXSocketFailedException.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 uint32_t _network;
31 unsigned char _node[IPX_NODE_LEN];
32 uint16_t _port;
33 uint8_t _packetType;
34}
35
39@property (readonly, nonatomic) uint32_t network;
40
44@property (readonly, nonatomic) uint16_t port;
45
49@property (readonly, nonatomic) uint8_t packetType;
50
62+ (instancetype)
63 exceptionWithNetwork: (uint32_t)network
64 node: (const unsigned char [_Nonnull IPX_NODE_LEN])node
65 port: (uint16_t)port
66 packetType: (uint8_t)packetType
67 socket: (id)socket
68 errNo: (int)errNo;
69
70+ (instancetype)exceptionWithSocket: (id)socket
71 errNo: (int)errNo OF_UNAVAILABLE;
72
84- (instancetype)
85 initWithNetwork: (uint32_t)network
86 node: (const unsigned char [_Nonnull IPX_NODE_LEN])node
87 port: (uint16_t)port
88 packetType: (uint8_t)packetType
89 socket: (id)socket
90 errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
91
92- (instancetype)initWithSocket: (id)socket errNo: (int)errNo OF_UNAVAILABLE;
93
99- (void)getNode: (unsigned char [_Nonnull IPX_NODE_LEN])node;
100@end
101
102OF_ASSUME_NONNULL_END
An exception indicating that binding an IPX socket failed.
Definition OFBindIPXSocketFailedException.h:29
An exception indicating that binding a socket failed.
Definition OFBindSocketFailedException.h:33