public AsynchronousSocketChannel openAsynchronousSocketChannel(AsynchronousChannelGroup arg0)
 {
     return Instance.CallMethod<AsynchronousSocketChannel>("openAsynchronousSocketChannel", "(Ljava/nio/channels/AsynchronousChannelGroup;)Ljava/nio/channels/AsynchronousSocketChannel;", arg0);
 }
        /// <summary>
        /// Opens an asynchronous socket channel.
        /// </summary>
        /// <param name="group">
        ///          The group to which the channel is bound, or {@code null} to
        ///          bind to the default group
        /// </param>
        /// <returns>  The new channel
        /// </returns>
        /// <exception cref="IllegalChannelGroupException">
        ///          If the provider that created the group differs from this provider </exception>
        /// <exception cref="ShutdownChannelGroupException">
        ///          The group is shutdown </exception>
        /// <exception cref="IOException">
        ///          If an I/O error occurs </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public abstract AsynchronousSocketChannel openAsynchronousSocketChannel(AsynchronousChannelGroup group) throws java.io.IOException;
        public abstract AsynchronousSocketChannel OpenAsynchronousSocketChannel(AsynchronousChannelGroup group);
Ejemplo n.º 3
0
        /// <summary>
        /// Opens an asynchronous socket channel.
        ///
        /// <para> The new channel is created by invoking the {@link
        /// AsynchronousChannelProvider#openAsynchronousSocketChannel
        /// openAsynchronousSocketChannel} method on the {@link
        /// AsynchronousChannelProvider} that created the group. If the group parameter
        /// is {@code null} then the resulting channel is created by the system-wide
        /// default provider, and bound to the <em>default group</em>.
        ///
        /// </para>
        /// </summary>
        /// <param name="group">
        ///          The group to which the newly constructed channel should be bound,
        ///          or {@code null} for the default group
        /// </param>
        /// <returns>  A new asynchronous socket channel
        /// </returns>
        /// <exception cref="ShutdownChannelGroupException">
        ///          If the channel group is shutdown </exception>
        /// <exception cref="IOException">
        ///          If an I/O error occurs </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static AsynchronousSocketChannel open(AsynchronousChannelGroup group) throws java.io.IOException
        public static AsynchronousSocketChannel Open(AsynchronousChannelGroup group)
        {
            AsynchronousChannelProvider provider = (group == null) ? AsynchronousChannelProvider.Provider() : group.Provider();

            return(provider.OpenAsynchronousSocketChannel(group));
        }