SocketMessageProcessor overview
![]() |
Constructor to instantiate a SocketMessageProcessor object. |
![]() | Determines whether the socket is connected |
![]() | Specifies the connection configuration used to set up the socket connection. By default the basic constructor is called. |
![]() | The local end point of the connection |
![]() | Connect to the endpoint specified in the ConnectivitySettings field. If the socket is already connected this method will return immediately and leave the current connection open. |
![]() | Disconnect the current connection by sending the OUT command and closing the socket. If the connection is already closed nothing happens (no exception is thrown). |
![]() | Determines whether the specified Object is equal to the current Object. |
![]() | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. |
![]() | Gets the Type of the current instance. |
![]() | Registers a message handler with this processor. |
![]() | The base class does nothing here. Descendant classes should implement this function by encoding the message in a byte array and send it using the SendSocketData method. |
![]() | Returns a String that represents the current Object. |
![]() | Unregisters the message handler from this processor. |
![]() | Occurs when an exception was raised while connecting to the endpoint. |
![]() | Occurs when a connection is closed with the remote endpoint. |
![]() | Occurs when a connection is established with the remote endpoint. |
![]() | Occurs when an exception was raised which caused the open connection to become invalid. |
![]() | Holds all messagehandlers for this socket processor |
![]() | The messagepool used to buffer messages. |
![]() | Set when a socket is prepared with proxy server enabled. This caches the ip adress of the proxyserver and eliminates resolving it everytime a socket is prepared. |
![]() | Starts an a-synchronous receive. |
![]() | The callback used by the Socket.BeginConnect() method. The ProxySocket class behaves different from the standard Socket class. The callback is called after a connection has already been established. |
![]() | The callback used by the Socket.BeginReceive method. |
![]() | The callback used by the Socket.BeginReceive method. |
![]() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. |
![]() | Returns a socket which is setup using the settings in the ConnectivitySettings field. Always use this method when you want to use sockets. |
![]() | Creates a shallow copy of the current Object. |
![]() | Fires the Connected event. |
![]() | Fires the Disconnected event. |
![]() | This methods is called when data is retreived from the message pool. It represents a single message. The processor has to convert this to a NetworkMessage object and pass it on to a MessageHandler. |
![]() | Overloaded. Used by descendants classes to send raw byte data over the socket connection. This function is at the moment blocking. This method uses the default socket in the SocketMessageProcessor class. |
SocketMessageProcessor Class | XihSolutions.DotMSN.Core Namespace