using System;
namespace grof{
/// <summary>
/// The <c>Initializer</c> class holds all data
/// for initializing a <c>GroupMember</c> instance.
/// </summary>
public class Initializer
{
/// <summary>
/// The group address of a multicast group,
/// e.g. "224.0.0.10".
/// </summary>
private string groupAddress;
/// <summary>
/// The port number of the multicast group,
/// e.g. 9050.
/// </summary>
private int groupPort;
/// <summary>
/// The IP address where the group member
/// is bound to, e.g. "127.0.0.1".
/// </summary>
private string listenerAddress;
/// <summary>
/// The port number the group member listens
/// for incoming messages, e.g. 9010.
/// </summary>
private int listenerPort;
/// <summary>
/// The name of the group, e.g.
/// "Network_Game".
/// </summary>
private string groupName;
/// <summary>
/// The name of the group member, e.g.
/// "Player_1".
/// </summary>
private string memberName;
/// <summary>
/// Constructor.
/// </summary>
public Initializer()
{
}
/// <summary>
/// The IP address of the group which
/// can be set and read.
/// </summary>
public string GroupAddress
{
set
{
this.groupAddress = value;
}
get
{
return this.groupAddress;
}
}
/// <summary>
/// The IP address where the group
/// member is bound to.
/// </summary>
public string ListenerAddress
{
set
{
this.listenerAddress = value;
}
get
{
return this.listenerAddress;
}
}
/// <summary>
/// The port number the group.
/// </summary>
public int GroupPort
{
set
{
this.groupPort = value;
}
get
{
return this.groupPort;
}
}
/// <summary>
/// The port number of the group
/// member where the group member
/// listens for incoming messages.
/// </summary>
public int ListenerPort
{
set
{
this.listenerPort = value;
}
get
{
return this.listenerPort;
}
}
/// <summary>
/// The name of the group.
/// </summary>
public string GroupName
{
set
{
this.groupName = value;
}
get
{
return this.groupName;
}
}
/// <summary>
/// The group member name.
/// </summary>
public string MemberName
{
set
{
this.memberName = value;
}
get
{
return this.memberName;
}
}
}
}
|