C# Class NetMQ.Sockets.PairSocket

A PairSocket is a NetMQSocket, usually used to synchronize two threads - using only one socket on each side.
Inheritance: NetMQSocket
ファイルを表示 Open project: mdhatmaker/Trading-prime-csharp Class Usage Examples

Public Methods

Method Description
CreateSocketPair ( PairSocket &socket1, PairSocket &socket2 ) : void

Create and return an inproc pipe where socket1 is bound and socket2 is connected.

PairSocket ( string connectionString = null ) : System.Threading

Create a new PairSocket and attach socket to zero or more endpoints.

Private Methods

Method Description
PairSocket ( SocketBase socketHandle ) : System.Threading

Create a new PairSocket based upon the given SocketBase.

Method Details

CreateSocketPair() public static method

Create and return an inproc pipe where socket1 is bound and socket2 is connected.
public static CreateSocketPair ( PairSocket &socket1, PairSocket &socket2 ) : void
socket1 PairSocket the Bind socket
socket2 PairSocket the Connect socket
return void

PairSocket() public method

Create a new PairSocket and attach socket to zero or more endpoints.
public PairSocket ( string connectionString = null ) : System.Threading
connectionString string List of NetMQ endpoints, separated by commas and prefixed by '@' (to bind the socket) or '>' (to connect the socket). /// Default action is connect (if endpoint doesn't start with '@' or '>')
return System.Threading