The amount of bytes that were sent/received.
Syntax
| Visual Basic (Declaration) | |
|---|
Public ReadOnly Property Count As Integer |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As Segment
Dim value As Integer
value = instance.Count |
| C# | |
|---|
public int Count {get;} |
| Managed Extensions for C++ | |
|---|
public: __property int get_Count(); |
| C++/CLI | |
|---|
public:
property int Count {
int get();
} |
Property Value
An integer value representing the amount of bytes that were sent/received.
Example
The following example demonstrates connecting to a server while specifying a local interface to use.
| Visual Basic | Copy Code |
|---|
' Connect to the server, specifying the local interface to use
Tcp1.Connect("atropos", 13, "192.168.0.83", 8888)
' Since connection was to DAYTIME port (13), simply receive the time
Dim seg As Segment = Tcp1.Receive()
Debug.WriteLine("Time reported by server: " + seg.ToString()) |
| C# | Copy Code |
|---|
// Connect to the server, specifying the local interface to use
tcp1.Connect("atropos", 13, "192.168.0.83", 8888);
// Since connection was to DAYTIME port (13), simply receive the time
Segment seg = tcp1.Receive();
Debug.WriteLine("Time reported by server: " + seg.ToString()); |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0
See Also