This is the main class that you will need to instantiate in order to create an HTTP proxy or transparent IP tunnel. Application developers can create an instance of this class and subscribe to events in order to intercept requests and responses in the HTTP pipeline.


The following tables list the members exposed by MunjaService.

Public Constructors

  Name Description
Static Public method MunjaService Overloaded.  
Top

Public Properties

  Name Description
Public property Addresses A command separated list of IP addresses that the service will bind to
Public property Name The service name, used for logging and display purposes only
Public property Port TCP port number that the service will bind to
Public property Settings Defines settings for this service.
Public property UpstreamPort The TCP port number on the upstream server this service will use. For HTTP proxies this is optional for upstream proxies but for IP tunnels it is a required property as this defines part of the tunnel endpoint.
Public property UpstreamServer The upstream server that this service will use if appropriate. For HTTP proxies this is optional for upstream proxies but for IP tunnels it is a required property as this defines part of the tunnel endpoint.
Top

Public Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method GetHashCode Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public method GetType Gets the Type of the current instance. (inherited from Object)
Public method Start Call this method when the service has been configured and your application is ready to start listening on the specified endpoints.
Public method Stop Stops the service and closes any listening sockets to avoid future connections from being established.
Public method ToString Returns a String that represents the current Object. (inherited from Object)
Top

Protected Methods

  Name Description
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)
Top

Public Events

  Name Description
Public event Connected This event is fired after a connection has been accepted and validated. If the Connecting event is not consumed either event can be used simply for notification of new connections.
Public event Connecting This event is fired after a connection has been accepted but before the handler's Go method has been called. Application developers should intercept connections here if they wish to block the connection for any reason so that no data gets passed over the communication channel.
Top

Explicit Interface Implementations

  Name Description
Static Private method MunjaService Overloaded.  
Top

See Also