Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ set(foundation_sources

src/NSPort.m
src/NSSocketPort.m
src/NSSocketPortNameServer.m
src/NSPortCoder.m
src/NSPortMessage.m
src/NSConcretePortCoder.m
Expand Down
1 change: 1 addition & 0 deletions include/Foundation/NSConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
FOUNDATION_EXPORT const NSRunLoopMode NSConnectionReplyMode;
FOUNDATION_EXPORT const NSNotificationName NSConnectionDidInitializeNotification;
FOUNDATION_EXPORT const NSNotificationName NSConnectionDidDieNotification;
FOUNDATION_EXPORT NSString *const NSFailedAuthenticationException;

// We store info about each released proxy (or rather, each proxy release) as an
// array with two ints: the id and the release count. This is also the format
Expand Down
1 change: 0 additions & 1 deletion include/Foundation/NSPortNameServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
// For compatibility, also import concrete name server types.
#import <Foundation/NSMachBootstrapServer.h>

// #import <Foundation/NSSocketPortNameServer.h>
@interface NSSocketPortNameServer : NSPortNameServer
@end

Expand Down
1 change: 1 addition & 0 deletions src/NSConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ - (void) _wakeup;
const NSRunLoopMode NSConnectionReplyMode = @"NSConnectionReplyMode";
const NSNotificationName NSConnectionDidInitializeNotification = @"NSConnectionDidInitializeNotification";
const NSNotificationName NSConnectionDidDieNotification = @"NSConnectionDidDieNotification";
NSString *const NSFailedAuthenticationException = @"NSFailedAuthenticationException";

BOOL NSDOLoggingEnabled = NO;
static atomic_uint lastSequenceNumber = 0;
Expand Down
36 changes: 36 additions & 0 deletions src/NSSocketPortNameServer.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
This file is part of Darling.

Copyright (C) 2025 Darling Developers

Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Darling 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 General Public License for more details.

You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#import <Foundation/NSSocketPortNameServer.h>
#import <Foundation/NSMethodSignature.h>
#import <Foundation/NSInvocation.h>

@implementation NSSocketPortNameServer

- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}

- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}

@end