public static CFSocket createConnectedToSocketSignature(CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback, double timeout) { return createConnectedToSocketSignature(null, signature, callBackTypes, callback, timeout); } public static CFSocket createConnectedToSocketSignature(CFAllocator allocator, CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback, double timeout) {
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(CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback, double timeout) { return createConnectedToSocketSignature(null, signature, callBackTypes, callback, timeout); } public static CFSocket createConnectedToSocketSignature(CFAllocator allocator, CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback, double timeout) {
public static CFSocket createConnectedToSocketSignature(CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback, double timeout) { return createConnectedToSocketSignature(null, signature, callBackTypes, callback, timeout); } public static CFSocket createConnectedToSocketSignature(CFAllocator allocator, CFSocketSignature signature, CFSocketCallBackType callBackTypes, CFSocketCallback callback, double timeout) {
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; }