#if !WindowsCE
using System.Net.Sockets;

namespace Modbus.IO
{
	internal class FullUdpClient : CrossPlatformUdpClient
	{
		public FullUdpClient(UdpClient udpClient)
			: base(udpClient)
		{
		}

		public override int ReadTimeout
		{
			get 
			{ 
				return UdpClient.Client.ReceiveTimeout; 
			}
			set 
			{ 
				UdpClient.Client.ReceiveTimeout = value; 
			}
		}

		public override int WriteTimeout
		{
			get 
			{ 
				return UdpClient.Client.SendTimeout; 
			}
			set 
			{ 
				UdpClient.Client.SendTimeout = value; 
			}
		}
	}
}
#endif
