PowerSNMP for .NET CF
Socket Property
See Also  Send comments on this topic.
Dart.Snmp Namespace > ManagerSlave Class : Socket Property




Gets the UdpSocket instance used for network communications.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Socket As UdpSocket
Visual Basic (Usage)Copy Code
Dim instance As ManagerSlave
Dim value As UdpSocket
 
value = instance.Socket
C# 
public UdpSocket Socket {get;}
Managed Extensions for C++ 
public: __property UdpSocket* get_Socket();
C++/CLI 
public:
property UdpSocket^ Socket {
   UdpSocket^ get();
}

Property Value

Read-only value is available at run-time only.

Remarks

The socket is automatically created when accessed or used. It is initialized using the System.Net.Sockets.AddressFamily property. Use the Close method to release socket resources. Created sockets are bound to IpAddress.Any and an ephemeral port. If a specific binding is required, use the System.Net.Sockets.Socket.Bind(System.Net.EndPoint) method.

The ReceiveTimeout defaults to 1000.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.