add getsock(), setsock()
Fork of WIZnetInterface by
Diff: Socket/DHCPClient.cpp
- Revision:
- 15:24a9f2df2145
- Parent:
- 0:6f28332c466f
diff -r 2101ab5ee40f -r 24a9f2df2145 Socket/DHCPClient.cpp --- a/Socket/DHCPClient.cpp Wed Jun 17 00:24:45 2015 +0000 +++ b/Socket/DHCPClient.cpp Mon Jun 22 09:11:47 2015 +0000 @@ -110,8 +110,8 @@ void DHCPClient::callback() { - //Endpoint host; - int recv_len = m_udp->receiveFrom(m_server, (char*)m_buf, sizeof(m_buf)); + Endpoint host; + int recv_len = m_udp->receiveFrom(host, (char*)m_buf, sizeof(m_buf)); if (recv_len < 0) { return; }