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 | |
|---|---|---|
|
MunjaService | Overloaded. |
Public Properties
| Name | Description | |
|---|---|---|
|
Addresses | A command separated list of IP addresses that the service will bind to |
|
Name | The service name, used for logging and display purposes only |
|
Port | TCP port number that the service will bind to |
|
Settings | Defines settings for this service. |
|
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. |
|
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. |
Public Methods
| Name | Description | |
|---|---|---|
|
Equals | Determines whether the specified |
|
GetHashCode | Serves as a hash function for a particular type. |
|
GetType | Gets the |
|
Start | Call this method when the service has been configured and your application is ready to start listening on the specified endpoints. |
|
Stop | Stops the service and closes any listening sockets to avoid future connections from being established. |
|
ToString | Returns a |
Protected Methods
| Name | Description | |
|---|---|---|
|
Finalize | Allows an |
|
MemberwiseClone | Creates a shallow copy of the current |
Public Events
| Name | Description | |
|---|---|---|
|
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. |
|
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. |
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
|
MunjaService | Overloaded. |