Package org.robovm.apple.coreservices
Class CFHost
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.coreservices.CFHost
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CFHost extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CFHost.CFHostPtr
static interface
CFHost.ClientCallback
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CFHost()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelInfoResolution(CFHostInfoType info)
static CFHost
create(java.lang.String hostname)
protected static CFHost
create(CFAllocator allocator, java.lang.String hostname)
protected static CFHost
create(CFAllocator allocator, NSData addr)
static CFHost
create(NSData addr)
protected static CFHost
createCopy(CFAllocator alloc, CFHost host)
static CFHost
createCopy(CFHost host)
NSInputStream
createSocketReadStream(int port)
NSOutputStream
createSocketWriteStream(int port)
NSArray<NSData>
getAddressing()
NSArray<NSData>
getAddressing(org.robovm.rt.bro.ptr.BooleanPtr hasBeenResolved)
static long
getClassTypeID()
java.util.List<java.lang.String>
getNames()
java.util.List<java.lang.String>
getNames(org.robovm.rt.bro.ptr.BooleanPtr hasBeenResolved)
NSData
getReachability()
NSData
getReachability(org.robovm.rt.bro.ptr.BooleanPtr hasBeenResolved)
void
scheduleInRunLoop(CFRunLoop runLoop, java.lang.String runLoopMode)
void
setCallback(CFHost.ClientCallback callback)
boolean
startInfoResolution(CFHostInfoType info)
void
unscheduleFromRunLoop(CFRunLoop runLoop, java.lang.String runLoopMode)
-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
-
-
-
Method Detail
-
create
public static CFHost create(java.lang.String hostname)
- Since:
- Available in iOS 2.0 and later.
-
getNames
public java.util.List<java.lang.String> getNames()
- Since:
- Available in iOS 2.0 and later.
-
getReachability
public NSData getReachability()
- Since:
- Available in iOS 2.0 and later.
-
setCallback
public void setCallback(CFHost.ClientCallback callback)
- Since:
- Available in iOS 2.0 and later.
-
createSocketReadStream
public NSInputStream createSocketReadStream(int port)
- Since:
- Available in iOS 2.0 and later.
-
createSocketWriteStream
public NSOutputStream createSocketWriteStream(int port)
- Since:
- Available in iOS 2.0 and later.
-
getClassTypeID
public static long getClassTypeID()
- Since:
- Available in iOS 2.0 and later.
-
create
protected static CFHost create(CFAllocator allocator, java.lang.String hostname)
- Since:
- Available in iOS 2.0 and later.
-
create
protected static CFHost create(CFAllocator allocator, NSData addr)
- Since:
- Available in iOS 2.0 and later.
-
createCopy
protected static CFHost createCopy(CFAllocator alloc, CFHost host)
- Since:
- Available in iOS 2.0 and later.
-
startInfoResolution
public boolean startInfoResolution(CFHostInfoType info) throws CFStreamErrorException
- Throws:
CFStreamErrorException
- Since:
- Available in iOS 2.0 and later.
-
getAddressing
public NSArray<NSData> getAddressing(org.robovm.rt.bro.ptr.BooleanPtr hasBeenResolved)
- Since:
- Available in iOS 2.0 and later.
-
getNames
public java.util.List<java.lang.String> getNames(org.robovm.rt.bro.ptr.BooleanPtr hasBeenResolved)
- Since:
- Available in iOS 2.0 and later.
-
getReachability
public NSData getReachability(org.robovm.rt.bro.ptr.BooleanPtr hasBeenResolved)
- Since:
- Available in iOS 2.0 and later.
-
cancelInfoResolution
public void cancelInfoResolution(CFHostInfoType info)
- Since:
- Available in iOS 2.0 and later.
-
scheduleInRunLoop
public void scheduleInRunLoop(CFRunLoop runLoop, java.lang.String runLoopMode)
- Since:
- Available in iOS 2.0 and later.
-
unscheduleFromRunLoop
public void unscheduleFromRunLoop(CFRunLoop runLoop, java.lang.String runLoopMode)
- Since:
- Available in iOS 2.0 and later.
-
-