|
.NET Framework | |||||||||
| PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT | |||||||||
Manages the remoting channels and port allocation
| Field Summary | |
|---|---|
| bool | autoDetectNATGateway |
| System.Net.IPEndPoint | listenBind |
| string | localAddress |
| Naanou.Common.ILogger | logger |
| Naanou.LookupService.Node | node |
| int | portInUse |
| string | primaryUrl |
| System.Runtime.Remoting.Channels.Tcp.TcpChannel | tcpChannel |
| Constructor Summary | |
|---|---|
|
Remoting(Naanou.LookupService.Node node) Constructor |
|
| Property Summary | |
|---|---|
| bool |
AutodetectedNATGateway
Was NAT gateway auto-detected? |
| System.Net.IPEndPoint |
ListenBind
Gets the IPEndPoint channel is listening on |
| string |
LocalAddress
Gest the local address (IP address), or gateway |
| string |
PrimaryUrl
Primary URL for transport |
| Method Summary | |
|---|---|
| bool |
PortInUse(int port) Checks whether a port is in use by attempting to do an exclusive bind to it |
| void |
SetLocalAddress(string newAddress) Overrides the local address setting |
| bool |
Start() Starts the transport service. Publishes node |
| void |
StartListening() Start listening on default ports |
| void |
StartListening(int tcpPort) Start listening on a specified port |
| void |
Stop() Close down remoting services (unpublishes node) |
| Methods inherited from class System.Object |
|---|
| Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
| Field Detail |
|---|
private bool autoDetectNATGateway
private System.Net.IPEndPoint listenBind
private string localAddress
private Naanou.Common.ILogger logger
private Naanou.LookupService.Node node
private int portInUse
private string primaryUrl
private System.Runtime.Remoting.Channels.Tcp.TcpChannel tcpChannel
| Constructor Detail |
|---|
public Remoting(Naanou.LookupService.Node node)
Constructor
Parameters:
node - Node| Property Detail |
|---|
public bool AutodetectedNATGateway
Was NAT gateway auto-detected?
public System.Net.IPEndPoint ListenBind
Gets the IPEndPoint channel is listening on
public string LocalAddress
Gest the local address (IP address), or gateway
public string PrimaryUrl
Primary URL for transport
| Method Detail |
|---|
private bool PortInUse(int port)
Checks whether a port is in use by attempting to do an exclusive bind to it
Parameters:
port - Port to trypublic void SetLocalAddress(string newAddress)
Overrides the local address setting
Parameters:
newAddress - Local address (preferably IP)public bool Start()
Starts the transport service. Publishes node
Returns:
private void StartListening()
Start listening on default ports
private void StartListening(int tcpPort)
Start listening on a specified port
Parameters:
tcpPort - Port to trypublic void Stop()
Close down remoting services (unpublishes node)
|
.NET Framework | |||||||||
| PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT | |||||||||