public static void CreateBoundPair(out NSInputStream readStream, out NSOutputStream writeStream, nint bufferSize) { IntPtr read, write; CFStream.CFStreamCreateBoundPair(IntPtr.Zero, out read, out write, bufferSize); AssignStreams(read, write, out readStream, out writeStream); }
public override void DidReceiveStream(MCSession session, Foundation.NSInputStream stream, string streamName, MCPeerID peerID) { AppDelegate.PeerHistoryMonitor[peerID.DisplayName].LastReceiveStream = DateTime.UtcNow; System.Diagnostics.Debug.WriteLine("MCSessionDelegate ** DidReceiveStream"); InvokeOnMainThread(() => new UIAlertView("Msg", "DidReceiveStream()", null, "OK", null).Show()); }
public static void CreatePairWithSocketToHost(IPEndPoint endpoint, out NSInputStream readStream, out NSOutputStream writeStream) { using (var host = CFHost.Create(endpoint)) { IntPtr read, write; CFStream.CFStreamCreatePairWithSocketToCFHost(IntPtr.Zero, host.Handle, endpoint.Port, out read, out write); AssignStreams(read, write, out readStream, out writeStream); } }
public static void CreatePairWithPeerSocketSignature(AddressFamily family, SocketType type, ProtocolType proto, IPEndPoint endpoint, out NSInputStream readStream, out NSOutputStream writeStream) { using (var address = new CFSocketAddress(endpoint)) { var sig = new CFSocketSignature(family, type, proto, address); IntPtr read, write; CFStream.CFStreamCreatePairWithPeerSocketSignature(IntPtr.Zero, ref sig, out read, out write); AssignStreams(read, write, out readStream, out writeStream); } }
public static void CreatePairWithSocket(CFSocket socket, out NSInputStream readStream, out NSOutputStream writeStream) { if (socket == null) { throw new ArgumentNullException("socket"); } IntPtr read, write; CFStream.CFStreamCreatePairWithSocket(IntPtr.Zero, socket.GetNative(), out read, out write); AssignStreams(read, write, out readStream, out writeStream); }
static void AssignStreams(IntPtr read, IntPtr write, out NSInputStream readStream, out NSOutputStream writeStream) { readStream = Runtime.GetNSObject <NSInputStream> (read); writeStream = Runtime.GetNSObject <NSOutputStream> (write); }
public static AnyObject JSONObjectWithStream(NSInputStream stream, NSJSONReadingOptions options, NSErrorPointer error) { return(default(AnyObject)); }
public NSXMLParser(NSInputStream stream) { }
public static AnyObject PropertyListWithStream(NSInputStream stream, NSPropertyListReadOptions options, UnsafeMutablePointer <NSPropertyListFormat> format, NSErrorPointer error) { return(default(AnyObject)); }
public static NSObject PropertyListWithStream(NSInputStream stream, ref NSPropertyListFormat format, out NSError error) { return(PropertyListWithStream(stream, NSPropertyListReadOptions.Immutable, ref format, out error)); }