ipcserverchannelとは? わかりやすく解説

IpcServerChannel クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

IPC システム使用してメッセージ送信するリモート呼び出しサーバー チャネル実装ます。

名前空間: System.Runtime.Remoting.Channels.Ipc
アセンブリ: System.Runtime.Remoting (system.runtime.remoting.dll 内)
構文構文

Public Class IpcServerChannel
    Implements IChannelReceiver, IChannel, ISecurableChannel
Dim instance As IpcServerChannel
public class IpcServerChannel : IChannelReceiver,
 IChannel, ISecurableChannel
public ref class IpcServerChannel : IChannelReceiver,
 IChannel, ISecurableChannel
public class IpcServerChannel implements IChannelReceiver,
 IChannel, 
    ISecurableChannel
public class IpcServerChannel implements IChannelReceiver,
 IChannel, 
    ISecurableChannel
解説解説

チャネルは、リモート呼び出し転送するために .NET Framework リモート処理インフラストラクチャによって使用されます。クライアントリモート オブジェクト呼び出すと、この呼び出しは、クライアント チャネルからサーバー チャネル送信されるメッセージとしてシリアル化されますメッセージ受信後、このメッセージが逆シリアル化され、処理されます。戻り値は、サーバー チャネルからクライアント チャネル送信されます。

IpcServerChannel クラスは、Windowsプロセス間通信 (IPC) システム使用して、同じコンピュータ上のアプリケーション ドメイン間でメッセージ転送します。同じコンピュータ上のアプリケーション ドメイン間で通信する場合IPC チャネルTCP チャネルHTTP チャネルよりもはるかに高速です。

サーバー側でメッセージ追加的な処理を実行するには、IpcServerChannel インスタンスによって処理されるすべてのメッセージ通過する IServerChannelSinkProvider の実装指定します

IpcServerChannel インスタンスは、バイナリ形式または SOAP 形式いずれかにシリアル化されたメッセージ受け取ります

IpcServerChannel オブジェクトには、構成ファイル使用して (静的 RemotingConfiguration.Configure メソッド呼び出す)、またはプログラムで (IpcServerChannel コンストラクタに IDictionary コレクションを渡す)、実行時設定できる構成プロパティ関連付けられています。これらの構成プロパティ一覧については、IpcServerChannel コンストラクタトピック参照してください

使用例使用例

IpcServerChannel クラス使用方法次のコード例示します

using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Ipc;

public class IpcServer
{

    public static void Main
 ()
    {
        // Create and register an IPC channel
        IpcServerChannel serverChannel = new IpcServerChannel("remote");
        ChannelServices.RegisterChannel(serverChannel);

        // Expose an object
        RemotingConfiguration.RegisterWellKnownServiceType( typeof(Counter), "counter",
 WellKnownObjectMode.Singleton );

        // Wait for calls
        Console.WriteLine("Listening on {0}", serverChannel.GetChannelUri());
        Console.ReadLine();
    }

}
#using <system.runtime.remoting.dll>
#using <System.dll>
#using <Counter.dll>

using namespace System;
using namespace System::Runtime::Remoting;
using namespace System::Runtime::Remoting::Channels;
using namespace System::Runtime::Remoting::Channels::Ipc;

public ref class IpcServer
{
public:
   void IpcServerTest()
   {
      // Create and register an IPC channel
      IpcServerChannel^ serverChannel = gcnew IpcServerChannel( L"remote"
 );
      ChannelServices::RegisterChannel( serverChannel );

      // Expose an object
      RemotingConfiguration::RegisterWellKnownServiceType( Counter::typeid, L"counter",
 WellKnownObjectMode::Singleton );
      
      // Wait for calls
      Console::WriteLine( L"Listening on {0}", serverChannel->GetChannelUri()
 );

      Console::ReadLine();
   }
};

int main()
{
   IpcServer^ is = gcnew IpcServer;
   is->IpcServerTest();
}
import System.*;
import System.Runtime.Remoting.*;
import System.Runtime.Remoting.Channels.*;
import System.Runtime.Remoting.Channels.Ipc.*;

public class IpcServer
{
    public static void main(String[]
 args)
    {
        // Create and register an IPC channel
        IpcServerChannel serverChannel = new IpcServerChannel("remote");
        ChannelServices.RegisterChannel(serverChannel);
        // Expose an object
        RemotingConfiguration.RegisterWellKnownServiceType(
            Counter.class.ToType(), "counter", WellKnownObjectMode.Singleton);
        // Wait for calls
        Console.WriteLine("Listening on {0}", serverChannel.GetChannelUri());
        Console.ReadLine();
    } //main
} //IpcServer 

上記コードは、次のリモート オブジェクト公開するために使用されます。

using System;

public class Counter : MarshalByRefObject {

  private int count = 0;

  public int Count { get
 {
    return(count++);
  } }

}
import System.*;

public class Counter extends MarshalByRefObject
{
    private int count = 0;

    /** @property 
     */
    public int get_Count()
    {
        return count++;
    } //get_Count
} //Counter 

このオブジェクトリモート使用するクライアント例については、IpcClientChannel のドキュメント参照してください

継承階層継承階層
System.Object
  System.Runtime.Remoting.Channels.Ipc.IpcServerChannel
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IpcServerChannel メンバ
System.Runtime.Remoting.Channels.Ipc 名前空間

IpcServerChannel コンストラクタ (IDictionary, IServerChannelSinkProvider)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

チャネル プロパティシンク指定して、IpcServerChannel クラス新しインスタンス初期化します。

名前空間: System.Runtime.Remoting.Channels.Ipc
アセンブリ: System.Runtime.Remoting (system.runtime.remoting.dll 内)
構文構文

Public Sub New ( _
    properties As IDictionary, _
    sinkProvider As IServerChannelSinkProvider _
)
Dim properties As IDictionary
Dim sinkProvider As IServerChannelSinkProvider

Dim instance As New IpcServerChannel(properties,
 sinkProvider)
public IpcServerChannel (
    IDictionary properties,
    IServerChannelSinkProvider sinkProvider
)
public:
IpcServerChannel (
    IDictionary^ properties, 
    IServerChannelSinkProvider^ sinkProvider
)
public IpcServerChannel (
    IDictionary properties, 
    IServerChannelSinkProvider sinkProvider
)
public function IpcServerChannel (
    properties : IDictionary, 
    sinkProvider : IServerChannelSinkProvider
)

パラメータ

properties

チャネル使用される構成プロパティの値を指定する IDictionary コレクション

sinkProvider

チャネルによって使用される IServerChannelSinkProvider の実装

解説解説
使用例使用例

このコンストラクタ使用するコードの例次に示します

// Create the server channel.
System.Collections.IDictionary properties = 
    new System.Collections.Hashtable();
properties["name"] = "ipc";
properties["priority"] = "20";
properties["portName"] = "localhost:9090";
IpcServerChannel serverChannel = 
    new IpcServerChannel(properties, null); 
// Create the server channel.
System::Collections::IDictionary^ properties = gcnew System::Collections::Hashtable;
properties->default[ L"name" ] = L"ipc";
properties->default[ L"priority" ] = L"20";
properties->default[ L"portName" ] = L"localhost:9090";
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( properties, nullptr );

.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IpcServerChannel クラス
IpcServerChannel メンバ
System.Runtime.Remoting.Channels.Ipc 名前空間
その他の技術情報
チャネルおよびフォーマッタ構成プロパティ

IpcServerChannel コンストラクタ (IDictionary, IServerChannelSinkProvider, CommonSecurityDescriptor)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

チャネル プロパティシンク、およびセキュリティ記述子指定して、IpcServerChannel クラス新しインスタンス初期化します。

名前空間: System.Runtime.Remoting.Channels.Ipc
アセンブリ: System.Runtime.Remoting (system.runtime.remoting.dll 内)
構文構文

Public Sub New ( _
    properties As IDictionary, _
    sinkProvider As IServerChannelSinkProvider, _
    securityDescriptor As CommonSecurityDescriptor _
)
Dim properties As IDictionary
Dim sinkProvider As IServerChannelSinkProvider
Dim securityDescriptor As CommonSecurityDescriptor

Dim instance As New IpcServerChannel(properties,
 sinkProvider, securityDescriptor)
public IpcServerChannel (
    IDictionary properties,
    IServerChannelSinkProvider sinkProvider,
    CommonSecurityDescriptor securityDescriptor
)
public:
IpcServerChannel (
    IDictionary^ properties, 
    IServerChannelSinkProvider^ sinkProvider, 
    CommonSecurityDescriptor^ securityDescriptor
)
public IpcServerChannel (
    IDictionary properties, 
    IServerChannelSinkProvider sinkProvider, 
    CommonSecurityDescriptor securityDescriptor
)
public function IpcServerChannel (
    properties : IDictionary, 
    sinkProvider : IServerChannelSinkProvider, 
    securityDescriptor : CommonSecurityDescriptor
)

パラメータ

properties

チャネル使用される構成プロパティの値を指定する IDictionary コレクション

sinkProvider

チャネルによって使用される IServerChannelSinkProvider の実装

securityDescriptor

チャネルによって使用される CommonSecurityDescriptor。

解説解説
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IpcServerChannel クラス
IpcServerChannel メンバ
System.Runtime.Remoting.Channels.Ipc 名前空間
その他の技術情報
チャネルおよびフォーマッタ構成プロパティ

IpcServerChannel コンストラクタ

IpcServerChannel クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
IpcServerChannel (String) IPC ポート名を指定して IpcServerChannel クラス新しインスタンス初期化します。
IpcServerChannel (IDictionary, IServerChannelSinkProvider) チャネル プロパティシンク指定してIpcServerChannel クラス新しインスタンス初期化します。
IpcServerChannel (String, String) チャネル名と IPC ポート名を指定してIpcServerChannel クラス新しインスタンス初期化します。
IpcServerChannel (IDictionary, IServerChannelSinkProvider, CommonSecurityDescriptor) チャネル プロパティシンク、およびセキュリティ記述子指定してIpcServerChannel クラス新しインスタンス初期化します。
IpcServerChannel (String, String, IServerChannelSinkProvider) チャネル名、IPC ポート名、およびシンク指定してIpcServerChannel クラス新しインスタンス初期化します。
参照参照

関連項目

IpcServerChannel クラス
IpcServerChannel メンバ
System.Runtime.Remoting.Channels.Ipc 名前空間

IpcServerChannel コンストラクタ (String, String, IServerChannelSinkProvider)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

チャネル名、IPC ポート名、およびシンク指定して、IpcServerChannel クラス新しインスタンス初期化します。

名前空間: System.Runtime.Remoting.Channels.Ipc
アセンブリ: System.Runtime.Remoting (system.runtime.remoting.dll 内)
構文構文

Public Sub New ( _
    name As String, _
    portName As String, _
    sinkProvider As IServerChannelSinkProvider _
)
Dim name As String
Dim portName As String
Dim sinkProvider As IServerChannelSinkProvider

Dim instance As New IpcServerChannel(name,
 portName, sinkProvider)
public IpcServerChannel (
    string name,
    string portName,
    IServerChannelSinkProvider sinkProvider
)
public:
IpcServerChannel (
    String^ name, 
    String^ portName, 
    IServerChannelSinkProvider^ sinkProvider
)
public IpcServerChannel (
    String name, 
    String portName, 
    IServerChannelSinkProvider sinkProvider
)
public function IpcServerChannel (
    name : String, 
    portName : String, 
    sinkProvider : IServerChannelSinkProvider
)

パラメータ

name

チャネルの名前。

portName

チャネルによって使用される IPC ポートの名前。

sinkProvider

チャネルによって使用される IServerChannelSinkProvider の実装

解説解説
使用例使用例

このコンストラクタ使用するコードの例次に示します

// Create the server channel.
string name = "ipc";
string portName = "localhost:9090";
IServerChannelSinkProvider sinkProvider = null;
IpcServerChannel serverChannel = 
    new IpcServerChannel(name, portName, sinkProvider);
// Create the server channel.
String^ name = L"ipc";
String^ portName = L"localhost:9090";
IServerChannelSinkProvider^ sinkProvider = nullptr;
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( name,portName,sinkProvider
 );

.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IpcServerChannel クラス
IpcServerChannel メンバ
System.Runtime.Remoting.Channels.Ipc 名前空間

IpcServerChannel コンストラクタ (String)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

IPC ポート名を指定して IpcServerChannel クラス新しインスタンス初期化します。

名前空間: System.Runtime.Remoting.Channels.Ipc
アセンブリ: System.Runtime.Remoting (system.runtime.remoting.dll 内)
構文構文

Public Sub New ( _
    portName As String _
)
Dim portName As String

Dim instance As New IpcServerChannel(portName)
public IpcServerChannel (
    string portName
)
public:
IpcServerChannel (
    String^ portName
)
public IpcServerChannel (
    String portName
)
public function IpcServerChannel (
    portName : String
)

パラメータ

portName

チャネルによって使用される IPC ポートの名前。

使用例使用例

このコンストラクタ使用するコードの例次に示します

// Create and register an IPC channel
IpcServerChannel serverChannel = new IpcServerChannel("remote");
ChannelServices.RegisterChannel(serverChannel);
// Create and register an IPC channel
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( L"remote" );
ChannelServices::RegisterChannel( serverChannel );
// Create and register an IPC channel
IpcServerChannel serverChannel = new IpcServerChannel("remote");
ChannelServices.RegisterChannel(serverChannel);
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IpcServerChannel クラス
IpcServerChannel メンバ
System.Runtime.Remoting.Channels.Ipc 名前空間

IpcServerChannel コンストラクタ (String, String)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

チャネル名と IPC ポート名を指定して、IpcServerChannel クラス新しインスタンス初期化します。

名前空間: System.Runtime.Remoting.Channels.Ipc
アセンブリ: System.Runtime.Remoting (system.runtime.remoting.dll 内)
構文構文

Public Sub New ( _
    name As String, _
    portName As String _
)
Dim name As String
Dim portName As String

Dim instance As New IpcServerChannel(name,
 portName)
public IpcServerChannel (
    string name,
    string portName
)
public:
IpcServerChannel (
    String^ name, 
    String^ portName
)
public IpcServerChannel (
    String name, 
    String portName
)
public function IpcServerChannel (
    name : String, 
    portName : String
)

パラメータ

name

チャネルの名前。

portName

チャネルによって使用される IPC ポートの名前。

解説解説
使用例使用例

このコンストラクタ使用するコードの例次に示します

// Create the server channel.
string name = "ipc";
string portName = "localhost:9090";
IpcServerChannel serverChannel = 
    new IpcServerChannel(name, portName);
// Create the server channel.
String^ name = L"ipc";
String^ portName = L"localhost:9090";
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( name,portName );

.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IpcServerChannel クラス
IpcServerChannel メンバ
System.Runtime.Remoting.Channels.Ipc 名前空間

IpcServerChannel プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ ChannelData チャネル固有のデータ取得します
パブリック プロパティ ChannelName 現在のチャネルの名前を取得します
パブリック プロパティ ChannelPriority 現在のチャネル優先順位取得します
パブリック プロパティ IsSecured  
参照参照

関連項目

IpcServerChannel クラス
System.Runtime.Remoting.Channels.Ipc 名前空間

IpcServerChannel メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

IpcServerChannel クラス
System.Runtime.Remoting.Channels.Ipc 名前空間

IpcServerChannel メンバ

IPC システム使用してメッセージ送信するリモート呼び出しサーバー チャネル実装ます。

IpcServerChannel データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ ChannelData チャネル固有のデータ取得します
パブリック プロパティ ChannelName 現在のチャネルの名前を取得します
パブリック プロパティ ChannelPriority 現在のチャネル優先順位取得します
パブリック プロパティ IsSecured  
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

IpcServerChannel クラス
System.Runtime.Remoting.Channels.Ipc 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ipcserverchannel」の関連用語

ipcserverchannelのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ipcserverchannelのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS