ARMmbed / sockets

mbed sockets library abstraction layer
Other
6 stars 18 forks source link

Implementations of get addr and get port are not testing for a socket being open #45

Closed adbridge closed 8 years ago

adbridge commented 8 years ago

Currently the implementations for:

socket_error_t Socket::getLocalAddr(SocketAddr *addr) const
socket_error_t Socket::getLocalPort(uint16_t *port) const
socket_error_t Socket::getRemoteAddr(SocketAddr *addr) const
socket_error_t Socket::getRemotePort(uint16_t *port) const

only test for a NULL api , they should also test for a NULL impl (as this is an equivalent test for whether the socket is open or not)

ciarmcom commented 8 years ago

ARM Internal Ref: IOTSFW-1452