|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.foundation.NSNetService
public abstract class NSNetService
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.
Nested Class Summary | |
---|---|
static class |
NSNetService._class_
|
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject |
---|
NSObject._static_ |
Constructor Summary | |
---|---|
NSNetService()
|
Method Summary | |
---|---|
abstract NSArray |
addresses()
The addresses of the service. |
static NSNetService |
alloc()
|
static NSNetService |
createWithDomain_type_name_port(NSString domain,
NSString type,
NSString name,
int port)
Factory method |
static NSNetService |
createWithDomain_type_name(NSString domain,
NSString type,
NSString name)
Factory method |
static NSData |
dataFromTXTRecordDictionary(NSDictionary txtDictionary)
Returns an NSData created from the provided dictionary. |
abstract NSNetServiceDelegate |
delegate()
Original signature : -(id native declaration : NSNetServices.h:88 |
static NSDictionary |
dictionaryFromTXTRecordData(NSData txtData)
Returns an NSDictionary created from the provided NSData. |
abstract NSString |
domain()
Returns the domain of the discovered or published service. |
abstract boolean |
getInputStream_outputStream(PointerByReference inputStream,
PointerByReference outputStream)
Retrieves streams from the NSNetService instance. |
static NSNetService._class_ |
getNSClass()
|
abstract NSString |
hostName()
Returns the DNS host name of the computer hosting the discovered or published service. |
abstract NSNetService |
initWithDomain_type_name_port(NSString domain,
NSString type,
NSString name,
int port)
This is the initializer for publishing. |
abstract NSNetService |
initWithDomain_type_name(NSString domain,
NSString type,
NSString name)
This is the initializer for resolution. |
abstract NSString |
name()
Returns the name of the discovered or published service. |
static NSNetService |
new_()
|
abstract NSInteger |
port()
The port of a resolved service. |
abstract void |
publish()
Advertises a given service on the network. |
abstract void |
publishWithOptions(int options)
Advertises a given service on the network. |
abstract void |
removeFromRunLoop_forMode(NSRunLoop aRunLoop,
NSString mode)
Original signature : -(void)removeFromRunLoop:(NSRunLoop*) forMode:(NSString*) native declaration : NSNetServices.h:94 |
abstract void |
resolve()
Attempts to determine at least one address for the NSNetService instance. |
abstract void |
scheduleInRunLoop_forMode(NSRunLoop aRunLoop,
NSString mode)
NSNetService instances may be scheduled on NSRunLoops to operate in different modes, or in other threads. |
abstract void |
setDelegate(NSNetServiceDelegate delegate)
Original signature : -(void)setDelegate:(id native declaration : NSNetServices.h:89 |
abstract boolean |
setTXTRecordData(NSData recordData)
Sets the TXT record of the NSNetService instance that has been or will be published. |
abstract void |
startMonitoring()
Starts monitoring the NSNetService instance for events. |
abstract void |
stop()
Halts a service which is either publishing or resolving. |
abstract void |
stopMonitoring()
Stops monitoring the NSNetService instance for events. |
abstract NSData |
TXTRecordData()
Returns the raw TXT record of the NSNetService instance. |
abstract NSString |
type()
Returns the type of the discovered or published service. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.rococoa.ObjCObject |
---|
id |
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject |
---|
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone |
Constructor Detail |
---|
public NSNetService()
Method Detail |
---|
public abstract NSNetService initWithDomain_type_name_port(NSString domain, NSString type, NSString name, int port)
-(id)initWithDomain:(NSString*) type:(NSString*) name:(NSString*) port:(int)
public static NSNetService createWithDomain_type_name_port(NSString domain, NSString type, NSString name, int port)
initWithDomain_type_name_port(org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSString, int)
public abstract NSNetService initWithDomain_type_name(NSString domain, NSString type, NSString name)
-(id)initWithDomain:(NSString*) type:(NSString*) name:(NSString*)
public static NSNetService createWithDomain_type_name(NSString domain, NSString type, NSString name)
initWithDomain_type_name(org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSString)
public abstract NSNetServiceDelegate delegate()
-(id)delegate
public abstract void setDelegate(NSNetServiceDelegate delegate)
-(void)setDelegate:(id)
public abstract void scheduleInRunLoop_forMode(NSRunLoop aRunLoop, NSString mode)
-(void)scheduleInRunLoop:(NSRunLoop*) forMode:(NSString*)
public abstract void removeFromRunLoop_forMode(NSRunLoop aRunLoop, NSString mode)
-(void)removeFromRunLoop:(NSRunLoop*) forMode:(NSString*)
public abstract NSString domain()
-(NSString*)domain
public abstract NSString type()
-(NSString*)type
public abstract NSString name()
-(NSString*)name
public abstract NSArray addresses()
-(NSArray*)addresses
public abstract NSInteger port()
-(NSInteger)port
public abstract void publish()
-(void)publish
public abstract void publishWithOptions(int options)
-(void)publishWithOptions:(NSNetServiceOptions)
options
- @see org.rococoa.cocoa.foundation.FoundationLibrary#NSNetServiceOptionspublic abstract void resolve()
-(void)resolve
public abstract void stop()
-(void)stop
public static NSDictionary dictionaryFromTXTRecordData(NSData txtData)
+(NSDictionary*)dictionaryFromTXTRecordData:(NSData*)
public static NSData dataFromTXTRecordDictionary(NSDictionary txtDictionary)
+(NSData*)dataFromTXTRecordDictionary:(NSDictionary*)
public abstract NSString hostName()
-(NSString*)hostName
public abstract boolean getInputStream_outputStream(PointerByReference inputStream, PointerByReference outputStream)
-(BOOL)getInputStream:(NSInputStream**) outputStream:(NSOutputStream**)
public abstract boolean setTXTRecordData(NSData recordData)
-(BOOL)setTXTRecordData:(NSData*)
public abstract NSData TXTRecordData()
-(NSData*)TXTRecordData
public abstract void startMonitoring()
-(void)startMonitoring
public abstract void stopMonitoring()
-(void)stopMonitoring
public static NSNetService alloc()
public static NSNetService new_()
public static NSNetService._class_ getNSClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |