mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
Modified method for making socket connections and added a synchronous version.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2845 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
95bae23856
commit
c48d8ba808
1 changed files with 20 additions and 10 deletions
|
@ -272,20 +272,30 @@ NSString* NSFileHandleOperationException =
|
||||||
return [[[[self _concreteClass] alloc]
|
return [[[[self _concreteClass] alloc]
|
||||||
initAsClientAtAddress:address
|
initAsClientAtAddress:address
|
||||||
service:service
|
service:service
|
||||||
protocol:protocol
|
protocol:protocol] autorelease];
|
||||||
forModes:nil] autorelease];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (id)fileHandleAsClientAtAddress:(NSString*)address
|
+ (id)fileHandleAsClientInBackgroundAtAddress:(NSString*)address
|
||||||
service:(NSString*)service
|
service:(NSString*)service
|
||||||
protocol:(NSString*)protocol
|
protocol:(NSString*)protocol
|
||||||
forModes:(NSArray*)modes
|
|
||||||
{
|
{
|
||||||
return [[[[self _concreteClass] alloc]
|
return [[[[self _concreteClass] alloc]
|
||||||
initAsClientAtAddress:address
|
initAsClientInBackgroundAtAddress:address
|
||||||
service:service
|
service:service
|
||||||
protocol:protocol
|
protocol:protocol
|
||||||
forModes:modes] autorelease];
|
forModes:nil] autorelease];
|
||||||
|
}
|
||||||
|
|
||||||
|
+ (id)fileHandleAsClientInBackgroundAtAddress:(NSString*)address
|
||||||
|
service:(NSString*)service
|
||||||
|
protocol:(NSString*)protocol
|
||||||
|
forModes:(NSArray*)modes
|
||||||
|
{
|
||||||
|
return [[[[self _concreteClass] alloc]
|
||||||
|
initAsClientInBackgroundAtAddress:address
|
||||||
|
service:service
|
||||||
|
protocol:protocol
|
||||||
|
forModes:modes] autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (id)fileHandleAsServerAtAddress:(NSString*)address
|
+ (id)fileHandleAsServerAtAddress:(NSString*)address
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue