C# Class OpenSim.Region.CoreModules.Avatar.InstantMessage.MessageTransferModule

Inheritance: ISharedRegionModule, IMessageTransferModule
Mostra file Open project: N3X15/VoxelSim Class Usage Examples

Protected Properties

Property Type Description
m_Scenes List
m_UserRegionMap UUID>.Dictionary

Public Methods

Method Description
AddRegion ( Scene scene ) : void
Close ( ) : void
Initialise ( IConfigSource config ) : void
PostInitialise ( ) : void
RegionLoaded ( Scene scene ) : void
RemoveRegion ( Scene scene ) : void
SendInstantMessage ( OpenSim.Framework.GridInstantMessage im, MessageResultNotification result ) : void

Protected Methods

Method Description
ConvertGridInstantMessageToXMLRPC ( OpenSim.Framework.GridInstantMessage msg ) : Hashtable

Takes a GridInstantMessage and converts it into a Hashtable for XMLRPC

GridInstantMessageCompleted ( IAsyncResult iar ) : void
SendGridInstantMessageViaXMLRPC ( OpenSim.Framework.GridInstantMessage im, MessageResultNotification result ) : void
SendGridInstantMessageViaXMLRPCAsync ( OpenSim.Framework.GridInstantMessage im, MessageResultNotification result, UUID prevRegionID ) : void

Recursive SendGridInstantMessage over XMLRPC method. This is called from within a dedicated thread. The first time this is called, prevRegionHandle will be 0 Subsequent times this is called from itself, prevRegionHandle will be the last region handle that we tried to send. If the handles are the same, we look up the user's location using the grid. If the handles are still the same, we end. The send failed.

doIMSending ( GridRegion reginfo, Hashtable xmlrpcdata ) : bool

This actually does the XMLRPC Request

processXMLRPCGridInstantMessage ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse

Process a XMLRPC Grid Instant Message

Private Methods

Method Description
HandleUndeliveredMessage ( OpenSim.Framework.GridInstantMessage im, MessageResultNotification result ) : void

Method Details

AddRegion() public method

public AddRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
return void

Close() public method

public Close ( ) : void
return void

ConvertGridInstantMessageToXMLRPC() protected method

Takes a GridInstantMessage and converts it into a Hashtable for XMLRPC
protected ConvertGridInstantMessageToXMLRPC ( OpenSim.Framework.GridInstantMessage msg ) : Hashtable
msg OpenSim.Framework.GridInstantMessage The GridInstantMessage object
return System.Collections.Hashtable

GridInstantMessageCompleted() protected method

protected GridInstantMessageCompleted ( IAsyncResult iar ) : void
iar IAsyncResult
return void

Initialise() public method

public Initialise ( IConfigSource config ) : void
config IConfigSource
return void

PostInitialise() public method

public PostInitialise ( ) : void
return void

RegionLoaded() public method

public RegionLoaded ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
return void

RemoveRegion() public method

public RemoveRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
return void

SendGridInstantMessageViaXMLRPC() protected method

protected SendGridInstantMessageViaXMLRPC ( OpenSim.Framework.GridInstantMessage im, MessageResultNotification result ) : void
im OpenSim.Framework.GridInstantMessage
result MessageResultNotification
return void

SendGridInstantMessageViaXMLRPCAsync() protected method

Recursive SendGridInstantMessage over XMLRPC method. This is called from within a dedicated thread. The first time this is called, prevRegionHandle will be 0 Subsequent times this is called from itself, prevRegionHandle will be the last region handle that we tried to send. If the handles are the same, we look up the user's location using the grid. If the handles are still the same, we end. The send failed.
protected SendGridInstantMessageViaXMLRPCAsync ( OpenSim.Framework.GridInstantMessage im, MessageResultNotification result, UUID prevRegionID ) : void
im OpenSim.Framework.GridInstantMessage
result MessageResultNotification
prevRegionID UUID
return void

SendInstantMessage() public method

public SendInstantMessage ( OpenSim.Framework.GridInstantMessage im, MessageResultNotification result ) : void
im OpenSim.Framework.GridInstantMessage
result MessageResultNotification
return void

doIMSending() protected method

This actually does the XMLRPC Request
protected doIMSending ( GridRegion reginfo, Hashtable xmlrpcdata ) : bool
reginfo OpenSim.Services.Interfaces.GridRegion RegionInfo we pull the data out of to send the request to
xmlrpcdata System.Collections.Hashtable The Instant Message data Hashtable
return bool

processXMLRPCGridInstantMessage() protected method

Process a XMLRPC Grid Instant Message
protected processXMLRPCGridInstantMessage ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest XMLRPC parameters ///
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

Property Details

m_Scenes protected_oe property

protected List m_Scenes
return List

m_UserRegionMap protected_oe property

protected Dictionary m_UserRegionMap
return UUID>.Dictionary