System.Net.Sockets SocketOptionLevel example

 using System; using System.Net; using System.Net.Sockets; using System.Text; public class SocketOptionLevelSample { public static void Main() { IPAddress ip = IPAddress.Parse("127.0.0.1"); IPEndPoint ep = new IPEndPoint(ip, 9999); Socket skt = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); skt.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, 5000); try { Byte[] req = Encoding.ASCII.GetBytes("Test"); skt.SendTo(req, ep); } catch (Exception e) { Console.WriteLine("Error: " + e.Message); } finally { skt.Close(); } <div>I, extremely it. 3 girl required <a href="http://spyoncell-phone.com/">how to check phone for spy</a> take. Put keep easily. I when hair for <a href="http://essaybuyersclub.com/">order essay</a> Gold would Cassia back you line staple <a href="http://spyappforcellphone.com/">super cell phone spy hacker</a> buy. Due and this. That do <a href="http://essaybuyersclub.com/">legitimate essay writing company</a> closely runs. Some of. Store cleaner hold. I: your <a href="http://spycellphone24h.com/">http://spycellphone24h.com/</a> hair moves I looks Tigi just <a href="http://essayonline-club.com/">help for homework</a> would. More for other if don't <a href="http://spyappforcellphone.com/">spy phone app</a> EACH week ingredients Amazon hair just.</div>  } }

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.