ap
Dependencies: DnsQuery
Dependents: WizFi310_TCP_Echo_Server_Example
Fork of NetworkSocketAPI by
Diff: Socket.cpp
- Branch:
- api-changes
- Revision:
- 36:eab792dfb0d8
- Parent:
- 35:838393fbc2ca
- Child:
- 38:157fb2ab965f
--- a/Socket.cpp Mon Feb 22 20:05:20 2016 -0600 +++ b/Socket.cpp Mon Feb 22 20:08:04 2016 -0600 @@ -94,10 +94,8 @@ _socket = _iface->createSocket(_proto); if (!_socket) return -2; - _socket->setIPAddress(_ip_address); - _socket->setPort(_port); + int32_t err = _socket->open(_ip_address, _port); - int32_t err = _socket->open(); if (err) { _iface->destroySocket(_socket); }