매번 찾기가 짜증난다..여기 기록..
Network errors
The convention of the network-socket API is for functions to return negative error codes to indicate failure. On success, a function may return zero or a non-negative integer to indicate the size of a transaction. On failure, a function must return a negative integer, which should be one of the error codes in the nsapi_error_t
enum (here):
/** Enum of standardized error codes
*
* Valid error codes have negative values and may
* be returned by any network operation.
*
* @enum nsapi_error_t
*/
typedef enum nsapi_error {
NSAPI_ERROR_WOULD_BLOCK = -3001, /*!< data is not available but call is non-blocking */
NSAPI_ERROR_UNSUPPORTED = -3002, /*!< unsupported functionality */
NSAPI_ERROR_PARAMETER = -3003, /*!< invalid configuration */
NSAPI_ERROR_NO_CONNECTION = -3004, /*!< not connected to a network */
NSAPI_ERROR_NO_SOCKET = -3005, /*!< socket not available for use */
NSAPI_ERROR_NO_ADDRESS = -3006, /*!< IP address is not known */
NSAPI_ERROR_NO_MEMORY = -3007, /*!< memory resource not available */
NSAPI_ERROR_DNS_FAILURE = -3008, /*!< DNS failed to complete successfully */
NSAPI_ERROR_DHCP_FAILURE = -3009, /*!< DHCP failed to complete successfully */
NSAPI_ERROR_AUTH_FAILURE = -3010, /*!< connection to access point failed */
NSAPI_ERROR_DEVICE_ERROR = -3011, /*!< failure interfacing with the network processor */
} nsapi_error_t;
'IT > Software' 카테고리의 다른 글
[코딩] #define에 관한 이야기(#, ##, \) (0) | 2018.08.28 |
---|---|
Announcing the Arduino Command Line Interface (CLI) (0) | 2018.08.28 |
[스크랩] [ 쥐롤 같은 오류 ] jump to case label (0) | 2018.08.14 |
네트워크 패킷 보기 - Wireshark (0) | 2018.03.08 |
우분투에 자바 설치하기 (0) | 2018.03.02 |