Package org.robovm.apple.corefoundation
Class CFSocket
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.corefoundation.CFSocket
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CFSocket extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CFSocket.CFSocketCallback
static class
CFSocket.CFSocketPtr
-
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
CFSocket()
-
Method Summary
-
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 CFSocket create(int protocolFamily, int socketType, int protocol, CFSocketCallBackType callBackTypes, CFSocket.CFSocketCallback callback)
-
create
public static CFSocket create(CFAllocator allocator, int protocolFamily, int socketType, int protocol, CFSocketCallBackType callBackTypes, CFSocket.CFSocketCallback callback)
-
create
public static CFSocket create(int sock, CFSocketCallBackType callBackTypes, CFSocket.CFSocketCallback callback)
-
create
public static CFSocket create(CFAllocator allocator, int sock, CFSocketCallBackType callBackTypes, CFSocket.CFSocketCallback callback)
-
create
public static CFSocket create(CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocket.CFSocketCallback callback)
-
create
public static CFSocket create(CFAllocator allocator, CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocket.CFSocketCallback callback)
-
createConnectedToSocketSignature
public static CFSocket createConnectedToSocketSignature(CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocket.CFSocketCallback callback, double timeout)
-
createConnectedToSocketSignature
public static CFSocket createConnectedToSocketSignature(CFAllocator allocator, CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocket.CFSocketCallback callback, double timeout)
-
createRunLoopSource
public CFRunLoopSource createRunLoopSource(long order)
-
createRunLoopSource
public CFRunLoopSource createRunLoopSource(CFAllocator allocator, long order)
-
getClassTypeID
public static long getClassTypeID()
-
setAddress
public CFSocketError setAddress(CFData address)
-
connectToAddress
public CFSocketError connectToAddress(CFData address, double timeout)
-
invalidate
public void invalidate()
-
isValid
public boolean isValid()
-
getAddress
public CFData getAddress()
-
getPeerAddress
public CFData getPeerAddress()
-
getNative
public int getNative()
-
createRunLoopSource
public static CFRunLoopSource createRunLoopSource(CFAllocator allocator, CFSocket s, long order)
-
getSocketFlags
public CFSocketFlags getSocketFlags()
-
setSocketFlags
public void setSocketFlags(CFSocketFlags flags)
-
disableCallBacks
public void disableCallBacks(long callBackTypes)
-
enableCallBacks
public void enableCallBacks(long callBackTypes)
-
sendData
public CFSocketError sendData(CFData address, CFData data, double timeout)
-
registerValue
public static CFSocketError registerValue(CFSocketSignature nameServerSignature, double timeout, java.lang.String name, CFType value)
-
getRegisteredValue
public static CFSocketError getRegisteredValue(CFSocketSignature nameServerSignature, double timeout, java.lang.String name, CFType.CFTypePtr value, CFData.CFDataPtr nameServerAddress)
-
registerSocketSignature
public static CFSocketError registerSocketSignature(CFSocketSignature nameServerSignature, double timeout, java.lang.String name, CFSocketSignature signature)
-
getRegisteredSocketSignature
public static CFSocketError getRegisteredSocketSignature(CFSocketSignature nameServerSignature, double timeout, java.lang.String name, CFSocketSignature signature, CFData.CFDataPtr nameServerAddress)
-
unregister
public static CFSocketError unregister(CFSocketSignature nameServerSignature, double timeout, java.lang.String name)
-
setDefaultNameRegistryPortNumber
public static void setDefaultNameRegistryPortNumber(short port)
-
getDefaultNameRegistryPortNumber
public static short getDefaultNameRegistryPortNumber()
-
-