-
Notifications
You must be signed in to change notification settings - Fork 0
b26056c7 12c6 1dd1 27b8 be08f2dd18eb
Arthur Frederico Neves edited this page Jul 19, 2016
·
6 revisions
Describes a pack publisher, which will be responsible for managing the incoming packs, adding them in a packQueue and by setting an incomingPackEvent to signal to the Consume() that there is a packet in the queue.
System.Object
NETLIB.Publisher
NETLIB.TCP.TCPPublisher
Namespace: NETLIB
Assembly: NETLIB (in NETLIB.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public abstract class Publisher : IDisposable
VB
Public MustInherit Class Publisher
Implements IDisposable
C++
public ref class Publisher abstract : IDisposable
F#
[<AbstractClassAttribute>]
type Publisher =
class
interface IDisposable
end
The Publisher type exposes the following members.
Name | Description | |
---|---|---|
![]() |
Publisher | Initializes the input event, the queue of packages and the states of the publisher. |
Name | Description | |
---|---|---|
![]() |
IncomingPackEvent | Event signaling that a packet arrived. |
![]() |
IsAlive | Boolean indicating whether the stream is still alive and able to receive new packages. |
![]() |
IsEnabled | Boolean indicating whether the publisher is currently active, publishing packages. |
![]() |
PackQueue | Gets the pack queue |
Name | Description | |
---|---|---|
![]() |
CloseConnection | Stop listening packets, closes the stream and reset the properties of the publisher |
![]() |
Dispose | Closes the connection, and resets the states of the publisher. |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
Finalize | Release resources in the death of the object if the Dispose() method was not used properly. (Overrides Object.Finalize().) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
OnConnectionClosedCall | Calls ConnectionClosedEvent |
![]() |
Publish | Method responsible for receiving packets of stream and puts them in the packet queue and signal the incoming pack event. |
![]() |
SendPack(Byte[], IPEndPoint) | Sends the packet through the same stream that is receiving packets. |
![]() |
SendPack(BasePack, IPEndPoint) | Sends the packet through the same stream that is receiving packets. |
![]() |
Start | Starts the packages listening/receive thread. |
![]() |
Stop | Stops the packages listening/receive thread. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() |
ConnectionClosed | Event used to signal when the connection (input stream) was closed for any reason. |
Name | Description | |
---|---|---|
![]() |
incomingPackEvent | Event signaling that a packet arrived. |
![]() |
isAlive | Boolean indicating whether the stream is still alive and able to receive new packages. |
![]() |
isEnabled | Boolean indicating whether the publisher is currently active, publishing packages. |
![]() |
packQueue | Queue that stores incoming packets. |
![]() |
publisherThread | Thread that will run the reception and publication of packs. |
A Sandcastle Documented Class Library
Send comments on this topic to [](mailto:?Subject=A Sandcastle Documented Class Library)
-
NETLIB Namespace
-
BasePack Class
- BasePack Constructor
- BasePack Properties
-
BasePack Methods
- BasePack.DeepCopy Method
- BasePack.GetBool Method
- BasePack.GetByte Method
- BasePack.GetChar Method
- BasePack.GetDouble Method
- BasePack.GetFloat Method
- BasePack.GetInt Method
- BasePack.GetPackable(CustomType) Method
- BasePack.GetString Method
- BasePack.PutBool Method
- BasePack.PutByte Method
- BasePack.PutChar Method
- BasePack.PutDouble Method
- BasePack.PutFloat Method
- BasePack.PutInt Method
- BasePack.PutPackable(CustomType) Method
- BasePack.PutString Method
- BasePack.Read Method
- BasePack.Write Method
- BasePack Type Conversions
- BasePack Fields
- ConnectionClosedEventHandler Delegate
- ConnectionClosedEventHandler(Type) Delegate
- ConnectionClosedException Class
-
Consumer(TPack) Class
- Consumer(TPack) Constructor
- Consumer(TPack) Properties
-
Consumer(TPack) Methods
- Consumer(TPack).CloseConnection Method
- Consumer(TPack).Dispose Method
- Consumer(TPack).EndConsume Method
- Consumer(TPack).EndPublishConsume Method
- Consumer(TPack).Finalize Method
- Consumer(TPack).OnReceivedPackCall Method
- Consumer(TPack).PackFactory Method
- Consumer(TPack).SendPack Method
- Consumer(TPack).Start Method
- Consumer(TPack).StartConsume Method
- Consumer(TPack) Events
- ConsumerRunningException Class
- IOBasePackHandler Class
- IOPackHandler(TPack) Class
- IPackable Interface
- ListenerRunnigException Class
- Protocol(TPack) Class
-
Publisher Class
- Publisher Constructor
- Publisher Properties
- Publisher Methods
- Publisher Events
- Publisher Fields
- PublisherRunnigException Class
- ThrowPackEventHandler(TPack) Delegate
-
BasePack Class
- NETLIB.TCP Namespace
- NETLIB.TCP.Server Namespace