Overview
Context
Changes
Modified src/Makefile
from [65892fa6a5]
to [04dfd40e3e].
︙ | | |
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
-
+
+
|
${USE_SRCS_SCTP} \
${USE_SRCS_UNIX_SOCKETS}
SRCS_APPLETALK = OFDDPSocket.m
SRCS_IPX = OFIPXSocket.m \
OFSPXSocket.m \
OFSPXStreamSocket.m
SRCS_SCTP = OFSCTPSocket.m
SRCS_UNIX_SOCKETS = OFUNIXDatagramSocket.m \
SRCS_UNIX_SOCKETS = OFUNIXDatagramSocket.m \
OFUNIXSequencedPacketSocket.m \
OFUNIXStreamSocket.m
SRCS_SUBPROCESSES = OFSubprocess.m
SRCS_THREADS = OFCondition.m \
OFMutex.m \
OFPlainCondition.m \
OFPlainMutex.m \
OFPlainThread.m \
|
︙ | | |
Modified src/OFSequencedPacketSocket.m
from [70e9e84ad7]
to [dd5f657d5f].
︙ | | |
367
368
369
370
371
372
373
374
375
376
377
378
379
380
|
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
|
+
+
+
+
+
|
case AF_INET:
client->_remoteAddress.family = OFSocketAddressFamilyIPv4;
break;
#ifdef OF_HAVE_IPV6
case AF_INET6:
client->_remoteAddress.family = OFSocketAddressFamilyIPv6;
break;
#endif
#ifdef OF_HAVE_UNIX_SOCKETS
case AF_UNIX:
client->_remoteAddress.family = OFSocketAddressFamilyUNIX;
break;
#endif
#ifdef OF_HAVE_IPX
case AF_IPX:
client->_remoteAddress.family = OFSocketAddressFamilyIPX;
break;
#endif
default:
|
︙ | | |
Added src/OFUNIXSequencedPacketSocket.h version [29508a044a].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
/*
* Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
*
* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3.0 only,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* version 3.0 for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* version 3.0 along with this program. If not, see
* <https://www.gnu.org/licenses/>.
*/
#import "OFSequencedPacketSocket.h"
OF_ASSUME_NONNULL_BEGIN
/**
* @protocol OFUNIXSequencedPacketSocketDelegate \
* OFUNIXSequencedPacketSocket.h ObjFW/ObjFW.h
*
* A delegate for OFUNIXSequencedPacketSocket.
*/
@protocol OFUNIXSequencedPacketSocketDelegate <OFSequencedPacketSocketDelegate>
@end
/**
* @class OFUNIXSequencedPacketSocket \
* OFUNIXSequencedPacketSocket.h ObjFW/ObjFW.h
*
* @brief A class which provides methods to create and use UNIX sequenced
* packet sockets.
*
* To connect to a server, create a socket and connect it.
* To create a server, create a socket, bind it and listen on it.
*/
@interface OFUNIXSequencedPacketSocket: OFSequencedPacketSocket
{
OF_RESERVE_IVARS(OFUNIXSequencedPacketSocket, 4)
}
/**
* @brief The delegate for asynchronous operations on the socket.
*
* @note The delegate is retained for as long as asynchronous operations are
* still ongoing.
*/
@property OF_NULLABLE_PROPERTY (assign, nonatomic)
id <OFUNIXSequencedPacketSocketDelegate> delegate;
/**
* @brief Connects the OFUNIXSequencedPacketSocket to the specified path.
*
* @param path The path to connect to
* @throw OFConnectUNIXSocketFailedException Connecting failed
* @throw OFAlreadyOpenException The socket is already connected or bound
*/
- (void)connectToPath: (OFString *)path;
/**
* @brief Binds the socket to the specified path.
*
* @param path The path to bind to
* @throw OFBindUNIXSocketFailedException Binding failed
* @throw OFAlreadyOpenException The socket is already connected or bound
*/
- (void)bindToPath: (OFString *)path;
@end
OF_ASSUME_NONNULL_END
|
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Added src/OFUNIXSequencedPacketSocket.m version [6f6a3e2ee6].