ObjFW
Loading...
Searching...
No Matches
OFConnectSPXSocketFailedException.h
1/*
2 * Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
3 *
4 * All rights reserved.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License version 3.0 only,
8 * as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13 * version 3.0 for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * version 3.0 along with this program. If not, see
17 * <https://www.gnu.org/licenses/>.
18 */
19
20#import "OFConnectSocketFailedException.h"
21
22OF_ASSUME_NONNULL_BEGIN
23
32OF_SUBCLASSING_RESTRICTED
34{
35 uint32_t _network;
36 unsigned char _node[IPX_NODE_LEN];
37 uint16_t _port;
38}
39
40
44@property (readonly, nonatomic) uint32_t network;
45
49@property (readonly, nonatomic) uint16_t port;
50
61+ (instancetype)
62 exceptionWithNetwork: (uint32_t)network
63 node: (const unsigned char [_Nullable IPX_NODE_LEN])node
64 port: (uint16_t)port
65 socket: (id)socket
66 errNo: (int)errNo;
67
68+ (instancetype)exceptionWithSocket: (id)socket
69 errNo: (int)errNo OF_UNAVAILABLE;
70
81- (instancetype)
82 initWithNetwork: (uint32_t)network
83 node: (const unsigned char [_Nullable IPX_NODE_LEN])node
84 port: (uint16_t)port
85 socket: (id)socket
86 errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
87
88- (instancetype)initWithSocket: (id)socket errNo: (int)errNo OF_UNAVAILABLE;
89
95- (void)getNode: (unsigned char [_Nonnull IPX_NODE_LEN])node;
96@end
97
98OF_ASSUME_NONNULL_END
An exception indicating that an SPX connection could not be established.
Definition OFConnectSPXSocketFailedException.h:34
An exception indicating that a connection could not be established.
Definition OFConnectSocketFailedException.h:38