C# 클래스 NetMQ.Zyre.ZreMsg

work with ZRE messages
파일 보기 프로젝트 열기: NetMQ/Zyre 1 사용 예제들

공개 메소드들

메소드 설명
GetUuid ( byte buffer, int offset ) : System.Guid
Receive ( IReceivingSocket input ) : bool

Receive a ZreMsg from the socket. Message is ignored if the message signature doesn't start with %xAA %xA1 (returns false). It appears "real" input will always be a RouterSocket, but DealerSocket is used during unit testing by zeromq/zyre and by this implementation.

ReceiveNew ( NetMQ.Sockets.RouterSocket input, System.Guid &uuid ) : ZreMsg

Return a new ZreMsg based received from the input socket. Message is ignored if input is a RouterSocket and the message header doesn't meet the http://rfc.zeromq.org/spec:36 spec. Message is ignored if the message signature doesn't start with %xAA %xA1.

Send ( IOutgoingSocket output ) : bool

Send the ZreMsg to the socket. Warning re WHISPER and SHOUT: The 0MQ spec http://rfc.zeromq.org/spec:36 says "message content defined as one 0MQ frame. ZRE does not support multi-frame message contents." ...on the other hand, it appears that zeromq/zyre also supports multi-frame contents, as per the top of zyre.c This C# implementation allows multi-frame contents.

SendHello ( IOutgoingSocket socket, string endpoint, List groups, byte status, string name, string>.Dictionary headers ) : bool

Send a Hello message to the socket

SendJoin ( IOutgoingSocket socket, ushort sequence, string group, byte status ) : bool

Send a Join message to the socket

SendLeave ( IOutgoingSocket socket, ushort sequence, string group, byte status ) : bool

Send a Leave message to the socket

SendPing ( IOutgoingSocket socket, ushort sequence ) : bool

Send a Ping message to the socket

SendPingOk ( IOutgoingSocket socket, ushort sequence ) : bool

Send a PingOk message to the socket

SendShout ( IOutgoingSocket socket, ushort sequence, NetMQMessage content ) : bool

Send a Shout message to the socket Warning re WHISPER and SHOUT: The 0MQ spec http://rfc.zeromq.org/spec:36 says "message content defined as one 0MQ frame. ZRE does not support multi-frame message contents." ...on the other hand, it appears that zeromq/zyre also supports multi-frame contents, as per the top of zyre.c This C# implementation allows multi-frame contents.

SendWhisper ( IOutgoingSocket socket, ushort sequence, NetMQMessage content ) : bool

Send a Whisper message to the socket Warning re WHISPER and SHOUT: The 0MQ spec http://rfc.zeromq.org/spec:36 says "message content defined as one 0MQ frame. ZRE does not support multi-frame message contents." ...on the other hand, it appears that zeromq/zyre also supports multi-frame contents, as per the top of zyre.c This C# implementation allows multi-frame contents.

ToString ( ) : string
ZreMsg ( ) : System

Create a new ZreMsg

비공개 메소드들

메소드 설명
GetLongString ( ) : string
GetNumber1 ( ) : byte
GetNumber2 ( ) : UInt16
GetNumber4 ( ) : UInt32
GetNumber8 ( ) : System.UInt64
GetOctets ( byte host, int size ) : void
GetString ( ) : string
PutLongString ( string host ) : void
PutNumber1 ( byte host ) : void
PutNumber2 ( UInt16 host ) : void
PutNumber4 ( UInt32 host ) : void
PutNumber8 ( System.UInt64 host ) : void
PutOctets ( byte host, int size ) : void
PutString ( string host ) : void

메소드 상세

GetUuid() 공개 정적인 메소드

public static GetUuid ( byte buffer, int offset ) : System.Guid
buffer byte
offset int
리턴 System.Guid

Receive() 공개 메소드

Receive a ZreMsg from the socket. Message is ignored if the message signature doesn't start with %xAA %xA1 (returns false). It appears "real" input will always be a RouterSocket, but DealerSocket is used during unit testing by zeromq/zyre and by this implementation.
public Receive ( IReceivingSocket input ) : bool
input IReceivingSocket the socket
리턴 bool

ReceiveNew() 공개 정적인 메소드

Return a new ZreMsg based received from the input socket. Message is ignored if input is a RouterSocket and the message header doesn't meet the http://rfc.zeromq.org/spec:36 spec. Message is ignored if the message signature doesn't start with %xAA %xA1.
public static ReceiveNew ( NetMQ.Sockets.RouterSocket input, System.Guid &uuid ) : ZreMsg
input NetMQ.Sockets.RouterSocket the socket
uuid System.Guid The identity Guid received into the RoutingId, or Guid.Empty
리턴 ZreMsg

Send() 공개 메소드

Send the ZreMsg to the socket. Warning re WHISPER and SHOUT: The 0MQ spec http://rfc.zeromq.org/spec:36 says "message content defined as one 0MQ frame. ZRE does not support multi-frame message contents." ...on the other hand, it appears that zeromq/zyre also supports multi-frame contents, as per the top of zyre.c This C# implementation allows multi-frame contents.
public Send ( IOutgoingSocket output ) : bool
output IOutgoingSocket
리턴 bool

SendHello() 공개 정적인 메소드

Send a Hello message to the socket
public static SendHello ( IOutgoingSocket socket, string endpoint, List groups, byte status, string name, string>.Dictionary headers ) : bool
socket IOutgoingSocket
endpoint string
groups List
status byte
name string
headers string>.Dictionary
리턴 bool

SendJoin() 공개 정적인 메소드

Send a Join message to the socket
public static SendJoin ( IOutgoingSocket socket, ushort sequence, string group, byte status ) : bool
socket IOutgoingSocket
sequence ushort
group string
status byte
리턴 bool

SendLeave() 공개 정적인 메소드

Send a Leave message to the socket
public static SendLeave ( IOutgoingSocket socket, ushort sequence, string group, byte status ) : bool
socket IOutgoingSocket
sequence ushort
group string
status byte
리턴 bool

SendPing() 공개 정적인 메소드

Send a Ping message to the socket
public static SendPing ( IOutgoingSocket socket, ushort sequence ) : bool
socket IOutgoingSocket
sequence ushort
리턴 bool

SendPingOk() 공개 정적인 메소드

Send a PingOk message to the socket
public static SendPingOk ( IOutgoingSocket socket, ushort sequence ) : bool
socket IOutgoingSocket
sequence ushort
리턴 bool

SendShout() 공개 정적인 메소드

Send a Shout message to the socket Warning re WHISPER and SHOUT: The 0MQ spec http://rfc.zeromq.org/spec:36 says "message content defined as one 0MQ frame. ZRE does not support multi-frame message contents." ...on the other hand, it appears that zeromq/zyre also supports multi-frame contents, as per the top of zyre.c This C# implementation allows multi-frame contents.
public static SendShout ( IOutgoingSocket socket, ushort sequence, NetMQMessage content ) : bool
socket IOutgoingSocket
sequence ushort
content NetMQMessage See warning above
리턴 bool

SendWhisper() 공개 정적인 메소드

Send a Whisper message to the socket Warning re WHISPER and SHOUT: The 0MQ spec http://rfc.zeromq.org/spec:36 says "message content defined as one 0MQ frame. ZRE does not support multi-frame message contents." ...on the other hand, it appears that zeromq/zyre also supports multi-frame contents, as per the top of zyre.c This C# implementation allows multi-frame contents.
public static SendWhisper ( IOutgoingSocket socket, ushort sequence, NetMQMessage content ) : bool
socket IOutgoingSocket
sequence ushort
content NetMQMessage See warning above
리턴 bool

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ZreMsg() 공개 메소드

Create a new ZreMsg
public ZreMsg ( ) : System
리턴 System