forked from S7NetPlus/s7netplus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into closeConnectionIOException
- Loading branch information
Showing
9 changed files
with
237 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace S7.Net.Protocol | ||
{ | ||
/// <summary> | ||
/// 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. | ||
/// </summary> | ||
public struct Tsap | ||
{ | ||
/// <summary> | ||
/// First byte of the TSAP. | ||
/// </summary> | ||
public byte FirstByte { get; set; } | ||
|
||
/// <summary> | ||
/// Second byte of the TSAP. | ||
/// </summary> | ||
public byte SecondByte { get; set; } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="Tsap" /> class using the specified values. | ||
/// </summary> | ||
/// <param name="firstByte">The first byte of the TSAP.</param> | ||
/// <param name="secondByte">The second byte of the TSAP.</param> | ||
public Tsap(byte firstByte, byte secondByte) | ||
{ | ||
FirstByte = firstByte; | ||
SecondByte = secondByte; | ||
} | ||
} | ||
} |
Oops, something went wrong.