public static CFSocket create(CFAllocator allocator, CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback) { long refconId = CFSocket.refconId.getAndIncrement(); CFSocketContext context = new CFSocketContext(); context.setInfo(refconId); CFSocket result = create(allocator, signature, callBackTypes, new FunctionPtr(cbInvoke), context); if (result != null) { synchronized (callbacks) { callbacks.put(refconId, callback); } } return result; } public static CFSocket createConnectedToSocketSignature(CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback, double timeout) {
public CFSocketContext(@MachineSizedSInt long version, @Pointer long info, FunctionPtr retain, FunctionPtr release, FunctionPtr copyDescription) { this.setVersion(version); this.setInfo(info); this.setRetain(retain); this.setRelease(release); this.setCopyDescription(copyDescription); } /*</constructors>*/
public CFSocketContext(@MachineSizedSInt long version, @Pointer long info, FunctionPtr retain, FunctionPtr release, FunctionPtr copyDescription) { this.setVersion(version); this.setInfo(info); this.setRetain(retain); this.setRelease(release); this.setCopyDescription(copyDescription); } /*</constructors>*/
public static CFSocket createConnectedToSocketSignature(CFAllocator allocator, CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback, double timeout) { long refconId = CFSocket.refconId.getAndIncrement(); CFSocketContext context = new CFSocketContext(); context.setInfo(refconId); CFSocket result = createConnectedToSocketSignature(allocator, signature, callBackTypes, new FunctionPtr(cbInvoke), context, timeout); if (result != null) { synchronized (callbacks) { callbacks.put(refconId, callback); } } return result; }
public CFSocketContext(@MachineSizedSInt long version, @Pointer long info, FunctionPtr retain, FunctionPtr release, FunctionPtr copyDescription) { this.setVersion(version); this.setInfo(info); this.setRetain(retain); this.setRelease(release); this.setCopyDescription(copyDescription); } /*</constructors>*/
public static CFSocket create(CFAllocator allocator, int sock, CFSocketCallBackType callBackTypes, CFSocketCallback callback) { long refconId = CFSocket.refconId.getAndIncrement(); CFSocketContext context = new CFSocketContext(); context.setInfo(refconId); CFSocket result = create(allocator, sock, callBackTypes, new FunctionPtr(cbInvoke), context); if (result != null) { synchronized (callbacks) { callbacks.put(refconId, callback); } } return result; } public static CFSocket create(CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback) {
public static CFSocket create(CFAllocator allocator, int protocolFamily, int socketType, int protocol, CFSocketCallBackType callBackTypes, CFSocketCallback callback) { long refconId = CFSocket.refconId.getAndIncrement(); CFSocketContext context = new CFSocketContext(); context.setInfo(refconId); CFSocket result = create(allocator, protocolFamily, socketType, protocol, callBackTypes, new FunctionPtr(cbInvoke), context); if (result != null) { synchronized (callbacks) { callbacks.put(refconId, callback); } } return result; } public static CFSocket create(int sock, CFSocketCallBackType callBackTypes, CFSocketCallback callback) {
public static CFSocket createConnectedToSocketSignature(CFAllocator allocator, CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback, double timeout) { long refconId = CFSocket.refconId.getAndIncrement(); CFSocketContext context = new CFSocketContext(); context.setInfo(refconId); CFSocket result = createConnectedToSocketSignature(allocator, signature, callBackTypes, new FunctionPtr(cbInvoke), context, timeout); if (result != null) { synchronized (callbacks) { callbacks.put(refconId, callback); } } return result; }
public static CFSocket createConnectedToSocketSignature(CFAllocator allocator, CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback, double timeout) { long refconId = CFSocket.refconId.getAndIncrement(); CFSocketContext context = new CFSocketContext(); context.setInfo(refconId); CFSocket result = createConnectedToSocketSignature(allocator, signature, callBackTypes, new FunctionPtr(cbInvoke), context, timeout); if (result != null) { synchronized (callbacks) { callbacks.put(refconId, callback); } } return result; }
public static CFSocket create(CFAllocator allocator, int protocolFamily, int socketType, int protocol, CFSocketCallBackType callBackTypes, CFSocketCallback callback) { long refconId = CFSocket.refconId.getAndIncrement(); CFSocketContext context = new CFSocketContext(); context.setInfo(refconId); CFSocket result = create(allocator, protocolFamily, socketType, protocol, callBackTypes, new FunctionPtr(cbInvoke), context); if (result != null) { synchronized (callbacks) { callbacks.put(refconId, callback); } } return result; } public static CFSocket create(int sock, CFSocketCallBackType callBackTypes, CFSocketCallback callback) {
public static CFSocket create(CFAllocator allocator, int sock, CFSocketCallBackType callBackTypes, CFSocketCallback callback) { long refconId = CFSocket.refconId.getAndIncrement(); CFSocketContext context = new CFSocketContext(); context.setInfo(refconId); CFSocket result = create(allocator, sock, callBackTypes, new FunctionPtr(cbInvoke), context); if (result != null) { synchronized (callbacks) { callbacks.put(refconId, callback); } } return result; } public static CFSocket create(CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback) {
public static CFSocket create(CFAllocator allocator, int sock, CFSocketCallBackType callBackTypes, CFSocketCallback callback) { long refconId = CFSocket.refconId.getAndIncrement(); CFSocketContext context = new CFSocketContext(); context.setInfo(refconId); CFSocket result = create(allocator, sock, callBackTypes, new FunctionPtr(cbInvoke), context); if (result != null) { synchronized (callbacks) { callbacks.put(refconId, callback); } } return result; } public static CFSocket create(CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback) {
public static CFSocket create(CFAllocator allocator, CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback) { long refconId = CFSocket.refconId.getAndIncrement(); CFSocketContext context = new CFSocketContext(); context.setInfo(refconId); CFSocket result = create(allocator, signature, callBackTypes, new FunctionPtr(cbInvoke), context); if (result != null) { synchronized (callbacks) { callbacks.put(refconId, callback); } } return result; } public static CFSocket createConnectedToSocketSignature(CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback, double timeout) {
public static CFSocket create(CFAllocator allocator, int protocolFamily, int socketType, int protocol, CFSocketCallBackType callBackTypes, CFSocketCallback callback) { long refconId = CFSocket.refconId.getAndIncrement(); CFSocketContext context = new CFSocketContext(); context.setInfo(refconId); CFSocket result = create(allocator, protocolFamily, socketType, protocol, callBackTypes, new FunctionPtr(cbInvoke), context); if (result != null) { synchronized (callbacks) { callbacks.put(refconId, callback); } } return result; } public static CFSocket create(int sock, CFSocketCallBackType callBackTypes, CFSocketCallback callback) {
public static CFSocket create(CFAllocator allocator, CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback) { long refconId = CFSocket.refconId.getAndIncrement(); CFSocketContext context = new CFSocketContext(); context.setInfo(refconId); CFSocket result = create(allocator, signature, callBackTypes, new FunctionPtr(cbInvoke), context); if (result != null) { synchronized (callbacks) { callbacks.put(refconId, callback); } } return result; } public static CFSocket createConnectedToSocketSignature(CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback, double timeout) {