C# Class Grider.GriderProxy

Show file Open project: diva/Grider Class Usage Examples

Public Properties

Property Type Description
HttpServer HttpServer.HttpListener
KnownCaps CapInfo>.Dictionary
activeCircuit System.Net.IPEndPoint
eq EventQueue
loginURI string
remoteLoginURI string

Public Methods

Method Description
AddCapsDelegate ( string CapName, CapsDelegate capsDelegate ) : void
AddDelegate ( PacketType packetType, Direction direction, PacketDelegate packetDelegate ) : void
FixupSeedCapsResponse ( CapsRequest capReq, CapsStage stage ) : bool
ForwardCaps ( string uri, CapsRequest capReq ) : void
GenericCheck ( uint &simIP, ushort &simPort, string &simCaps, bool active ) : void
GriderProxy ( GriderProxyConfig proxyConfig ) : System
InjectPacket ( Packet packet, Direction direction ) : void
KeepAlive ( ) : void
ProxySim ( IPEndPoint simEndPoint ) : IPEndPoint
RemoveCapRequestDelegate ( string CapName, CapsDelegate capsDelegate ) : void
RemoveDelegate ( PacketType packetType, Direction direction, PacketDelegate packetDelegate ) : void
SendPacket ( Packet packet, IPEndPoint endPoint, bool skipZero ) : void
SeparateAck ( Packet packet ) : Packet
SetLoginRequestDelegate ( XmlRpcRequestDelegate loginRequestDelegate ) : XmlRpcRequestDelegate
SetLoginResponseDelegate ( XmlRpcResponseDelegate loginResponseDelegate ) : XmlRpcResponseDelegate
SpoofAck ( uint sequence ) : Packet
Start ( ) : void
Stop ( ) : void
SwapPacket ( Packet oldPacket, Packet newPacket ) : void
UnproxySim ( IPEndPoint simEndPoint ) : void

Private Methods

Method Description
AddHandler ( EndPoint endPoint, SimProxy proxy ) : void
AddMystery ( PacketType type ) : void
CheckCrossedRegion ( Packet packet ) : Packet
CheckEnableSimulator ( Packet packet ) : Packet
CheckTeleportFinish ( Packet packet ) : Packet
FixupEventQueueGet ( CapsRequest capReq, CapsStage stage ) : bool
InitializeAddressCheckers ( ) : void
InitializeCaps ( ) : void
InitializeLoginProxy ( ) : void
InitializeSimProxy ( ) : void
KnownCapDelegate ( CapsRequest capReq, CapsStage stage ) : bool
Log ( object message, bool important ) : void
LogIncomingMysteryPacket ( Packet packet ) : Packet
LogOutgoingMysteryPacket ( Packet packet ) : Packet
LogPacket ( Packet packet, string type ) : Packet
ProxyCaps ( NetworkStream netStream, string meth, string uri, string>.Dictionary headers, byte content, int reqNo ) : void
ProxyHTTP ( Socket client ) : void
ProxyLogin ( NetworkStream netStream, byte content ) : void
ProxyLoginSD ( NetworkStream netStream, byte content ) : void
ReceiveFromSim ( IAsyncResult ar ) : void
ReifyEventQueueGetRequest ( CapsRequest capReq ) : bool
Reset ( ) : void
RunLoginProxy ( ) : void
RunSimProxy ( ) : void
StartHttpServer ( ) : void
callDelegates ( Dictionary delegates, Packet packet, IPEndPoint remoteEndPoint ) : Packet

Method Details

AddCapsDelegate() public method

public AddCapsDelegate ( string CapName, CapsDelegate capsDelegate ) : void
CapName string
capsDelegate CapsDelegate
return void

AddDelegate() public method

public AddDelegate ( PacketType packetType, Direction direction, PacketDelegate packetDelegate ) : void
packetType PacketType
direction Direction
packetDelegate PacketDelegate
return void

FixupSeedCapsResponse() public method

public FixupSeedCapsResponse ( CapsRequest capReq, CapsStage stage ) : bool
capReq CapsRequest
stage CapsStage
return bool

ForwardCaps() public method

public ForwardCaps ( string uri, CapsRequest capReq ) : void
uri string
capReq CapsRequest
return void

GenericCheck() public method

public GenericCheck ( uint &simIP, ushort &simPort, string &simCaps, bool active ) : void
simIP uint
simPort ushort
simCaps string
active bool
return void

GriderProxy() public method

public GriderProxy ( GriderProxyConfig proxyConfig ) : System
proxyConfig GriderProxyConfig
return System

InjectPacket() public method

public InjectPacket ( Packet packet, Direction direction ) : void
packet OpenMetaverse.Packets.Packet
direction Direction
return void

KeepAlive() public method

public KeepAlive ( ) : void
return void

ProxySim() public method

public ProxySim ( IPEndPoint simEndPoint ) : IPEndPoint
simEndPoint System.Net.IPEndPoint
return System.Net.IPEndPoint

RemoveCapRequestDelegate() public method

public RemoveCapRequestDelegate ( string CapName, CapsDelegate capsDelegate ) : void
CapName string
capsDelegate CapsDelegate
return void

RemoveDelegate() public method

public RemoveDelegate ( PacketType packetType, Direction direction, PacketDelegate packetDelegate ) : void
packetType PacketType
direction Direction
packetDelegate PacketDelegate
return void

SendPacket() public method

public SendPacket ( Packet packet, IPEndPoint endPoint, bool skipZero ) : void
packet OpenMetaverse.Packets.Packet
endPoint System.Net.IPEndPoint
skipZero bool
return void

SeparateAck() public method

public SeparateAck ( Packet packet ) : Packet
packet OpenMetaverse.Packets.Packet
return OpenMetaverse.Packets.Packet

SetLoginRequestDelegate() public method

public SetLoginRequestDelegate ( XmlRpcRequestDelegate loginRequestDelegate ) : XmlRpcRequestDelegate
loginRequestDelegate XmlRpcRequestDelegate
return XmlRpcRequestDelegate

SetLoginResponseDelegate() public method

public SetLoginResponseDelegate ( XmlRpcResponseDelegate loginResponseDelegate ) : XmlRpcResponseDelegate
loginResponseDelegate XmlRpcResponseDelegate
return XmlRpcResponseDelegate

SpoofAck() public method

public SpoofAck ( uint sequence ) : Packet
sequence uint
return OpenMetaverse.Packets.Packet

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

SwapPacket() public static method

public static SwapPacket ( Packet oldPacket, Packet newPacket ) : void
oldPacket OpenMetaverse.Packets.Packet
newPacket OpenMetaverse.Packets.Packet
return void

UnproxySim() public method

public UnproxySim ( IPEndPoint simEndPoint ) : void
simEndPoint System.Net.IPEndPoint
return void

Property Details

HttpServer public property

public HttpServer.HttpListener HttpServer
return HttpServer.HttpListener

KnownCaps public property

public Dictionary KnownCaps
return CapInfo>.Dictionary

activeCircuit public property

public IPEndPoint,System.Net activeCircuit
return System.Net.IPEndPoint

eq public property

public EventQueue,Grider eq
return EventQueue

loginURI public property

public string loginURI
return string

remoteLoginURI public property

public string remoteLoginURI
return string