Http Class |
Namespace: Crosser.Server.Modules.Protocol.HTTP
public class Http : Protocol, IHttp, IProtocol, IDisposable
The Http type exposes the following members.
Name | Description | |
---|---|---|
AuthRequired |
True if the IBaseEndpoint requires authentication
(Inherited from Protocol.) | |
ClientStats |
Clients statistics
(Inherited from Protocol.) | |
ConnectionContext |
Connection information IConnectionContext (Inherited from Protocol.) | |
Controllers |
The controller instances used by this connection
(Inherited from Protocol.) | |
ProtocolIdentifier |
Identifier for the protocol, passed into the ctor from implementing protocols
(Inherited from Protocol.) | |
PubSubHandler | IPubSubHandler module
(Inherited from Protocol.) | |
Server |
Reference to the IServer (Inherited from Protocol.) | |
Subscriptions |
Current subscriptions for this connection
(Inherited from Protocol.) | |
Transport | IBaseTransport for the protocol
(Inherited from Protocol.) |
Name | Description | |
---|---|---|
Dispose |
Release resources and update IServerStatistics (Overrides ProtocolDispose.) | |
EnsureController |
Makes sure that there is an instance of a specific controller.
Also makes sure that security is in place. Knowing what methods the connection can call.
(Inherited from Protocol.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
ExecuteCall |
Invoke the correct RPC controller/method with the payload.
Also handles return values when needed
(Inherited from Protocol.) | |
ExecuteCallSynchronously |
Invoke the correct RPC controller/method with the payload.
Also handles return values when needed
Will execute 1 operation at the time. Other operations will wait.
This will be executed when the IController or the method being invoked is decorated with the RunSynchronouslyAttribute (Inherited from Protocol.) | |
ExecuteHttpCall |
Executes the call to the current ControllerDelegate and sends back a HTTP response based on the result
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FlushTransport |
Flushes the IBaseTransport write stream
(Inherited from Protocol.) | |
GetControllerDelegate |
Creates a ControllerDelegate to use when calling the controller/method
(Inherited from Protocol.) | |
GetDeadConnectionFrame |
Creates and return a DeadConnection message wrapped in a WebSocket frame
(Overrides ProtocolGetDeadConnectionFrame.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetPingFrame |
Build and returns a PINGFRAME (Overrides ProtocolGetPingFrame.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasControllerInstanceOf |
True if the controllers repository has a instance of the specific BinaryKey (Inherited from Protocol.) | |
InitClientStats |
Setup the properties on the ClientStats object
(Inherited from Protocol.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ReadLoop |
Read loop for HTTP/WebSockets
(Overrides ProtocolReadLoop.) | |
RemoveController |
Removes a controller instance from the Controllers repository.
(Inherited from Protocol.) | |
Send(Byte) |
Adds the data to be sent to the OutQueue
(Overrides ProtocolSend(Byte).) | |
Send(BinaryKey, String, Byte) |
Builds a RPC frame and push it to the OutQueue
(Overrides ProtocolSend(BinaryKey, String, Byte).) | |
Send(Byte, Byte, Byte, FrameType) |
Builds a RPC frame and push it to the OutQueue
| |
Send(Byte, Byte, Byte, Byte) |
Builds a RPC frame and push it to the OutQueue
(Overrides ProtocolSend(Byte, Byte, Byte, Byte).) | |
SendLoop |
Send loop that reads the OutQueue (Inherited from Protocol.) | |
StartPing |
If the connection is upgraded to WebSockets this starts the heartbeeat.
(Overrides ProtocolStartPing.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
callbackId |
Buffer for callback-id.
(Inherited from Protocol.) | |
callbackIdPos |
Length to read from callbackId (Inherited from Protocol.) | |
Cancellation |
CancellationToken used in communication
(Inherited from Protocol.) | |
CloseReason |
Reason CloseReason for closing the connection
(Inherited from Protocol.) | |
controller |
Controller buffer, controller to call is within
(Inherited from Protocol.) | |
controllerPos |
The length to read from the controller (Inherited from Protocol.) | |
controllerToCall |
Cache controller since it will save time when same controller is called for each message
(Inherited from Protocol.) | |
data |
Last byte operation read from the IBaseTransport (Inherited from Protocol.) | |
disposed |
Flag for knowing if the object has been disposed
(Inherited from Protocol.) | |
iam |
Buffer for the IAM message operation
(Inherited from Protocol.) | |
iampos |
Size of the IAM message
(Inherited from Protocol.) | |
InQueue |
Queue for incoming data
(Inherited from Protocol.) | |
Interactive |
If true the protocol will respond with +OK messages for every valid operation. Only possible for full-duplex connections.
(Inherited from Protocol.) | |
IsAuthenticated |
True if the Authenticate(IProtocol) method returned true
(Inherited from Protocol.) | |
lastControllerAsByte |
Cache for last controller called
(Inherited from Protocol.) | |
lastControllerKey |
Cache for the last controller called as BinaryKey (Inherited from Protocol.) | |
lastMethodAsByte |
Cache for last method called
(Inherited from Protocol.) | |
lastMethodKey |
Cache for the last method called as BinaryKey (Inherited from Protocol.) | |
len |
Length to read from the IBaseTransport (Inherited from Protocol.) | |
locker |
For blocking simultaneous access to certain areas
(Inherited from Protocol.) | |
method |
Method buffer, method to call is within
(Inherited from Protocol.) | |
methodPos |
The length to read from the method (Inherited from Protocol.) | |
methodToCall |
Information about the method to be called ControllerDelegate (Inherited from Protocol.) | |
OutQueue |
Queue for outgoing data
(Inherited from Protocol.) | |
PubQueue |
Queue for messages published over a pub/sub pattern
(Inherited from Protocol.) | |
read |
Read buffer
(Inherited from Protocol.) | |
ReadState |
The ReadState for the ReadLoop
(Inherited from Protocol.) | |
run |
The readloop will continue as long as this flag is true.
When false the connection will be disposed
(Inherited from Protocol.) | |
size |
Size buffer
(Inherited from Protocol.) | |
sizepos |
Size position (for knowing size to read from size buffer)
(Inherited from Protocol.) | |
topic |
Topic parsed from the stream
(Inherited from Protocol.) | |
topicpos |
Length of the topic
(Inherited from Protocol.) | |
unsubcount |
Max messages to publish before doing automatic unsubscribe
(Inherited from Protocol.) | |
unsubcountpos |
Length of unsub-count
(Inherited from Protocol.) | |
validTopic |
Flag for knowing if the topic parsed is valid
(Inherited from Protocol.) | |
write |
Write buffer
(Inherited from Protocol.) |