public HttpWiflyImpl(HttpImplementationClient.RequestReceivedDelegate requestReceived, int localPort, DeviceType deviceType, SPI.SPI_module spiModule, Cpu.Pin chipSelect) { m_requestReceived = requestReceived; LocalPort = localPort; this.m_spiModule = spiModule; this.m_chipSelect = chipSelect; }
public HttpSocketImpl(HttpImplementationClient.RequestReceivedDelegate requestReceived, int localPort = 80) { m_requestReceived = requestReceived; m_listeningSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IPEndPoint ep = new IPEndPoint(new IPAddress(new byte[] { 195, 83, 132, 135 }), 123); m_listeningSocket.Bind(new IPEndPoint(IPAddress.Any, localPort)); m_listeningSocket.Listen(10); }