Click or drag to resize
BroccoliSharp BroConnectionSendEvent Method (Byte, Int32)
Enqueues a serialized event directly into the send buffer for this BroConnection.

Namespace: BroccoliSharp
Assembly: BroccoliSharp (in BroccoliSharp.dll) Version: 1.0.5434.15853
Syntax
public bool SendEvent(
	byte[] data,
	int length
)

Parameters

data
Type: SystemByte
Serialized event.
length
Type: SystemInt32
Length of serialized event.

Return Value

Type: Boolean
true if successful; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptiondata is null.
ArgumentOutOfRangeExceptionlength is larger than data length.
ObjectDisposedExceptionCannot send event, BroConnection is disposed.
Remarks
Enqueues the given event data into the transmit buffer of this BroConnection. length bytes of data must correspond to a single event.
See Also