namespace S7.Net.Protocol
{
///
/// Provides a representation of the Transport Service Access Point, or TSAP in short. TSAP's are used
/// to specify a client and server address. For most PLC types a default TSAP is available that allows
/// connection from any IP and can be calculated using the rack and slot numbers.
///
public struct Tsap
{
///
/// First byte of the TSAP.
///
public byte FirstByte { get; set; }
///
/// Second byte of the TSAP.
///
public byte SecondByte { get; set; }
///
/// Initializes a new instance of the class using the specified values.
///
/// The first byte of the TSAP.
/// The second byte of the TSAP.
public Tsap(byte firstByte, byte secondByte)
{
FirstByte = firstByte;
SecondByte = secondByte;
}
}
}