如题,请问CC3200在使用socket client模式连接远程服务器时,连接返回-100是什么原因导致的,在头文件里的返回错误说明刚好没有-100的原因
#define SL_EADDRINUSE (-98) /* Address already in use */
#define SL_EADDRNOTAVAIL (-99) /* Cannot assign requested address */
#define SL_ENETUNREACH (-101) /* Network is unreachable */
#define SL_ENOBUFS (-105) /* No buffer space available */
#define SL_EOBUFF SL_ENOBUFS#define SL_EISCONN (-106) /* Transport endpoint is already connected */
#define SL_ENOTCONN (-107) /* Transport endpoint is not connected */
#define SL_ETIMEDOUT (-110) /* Connection timed out */
#define SL_ECONNREFUSED (-111) /* Connection refused */
#define SL_EALREADY (-114) /* Non blocking connect in progress, try again */
Viki Shi:
我也没找到定义,error code都在这了:
/* error codes */84 #define SL_SOC_ERROR(-1)/* Failure.*/85 #define SL_SOC_OK( 0)/* Success.*/86 #define SL_INEXE(-8)/* socket command in execution*/87 #define SL_EBADF(-9)/* Bad file number */88 #define SL_ENSOCK(-10)/* The system limit on the total number of open socket, has been reached */89 #define SL_EAGAIN(-11)/* Try again */90 #define SL_EWOULDBLOCKSL_EAGAIN91 #define SL_ENOMEM(-12)/* Out of memory */92 #define SL_EACCES(-13)/* Permission denied */93 #define SL_EFAULT(-14)/* Bad address */94 #define SL_ECLOSE(-15)/* close socket operation failed to transmit all queued packets */95 #define SL_EALREADY_ENABLED(-21)/* Transceiver – Transceiver already ON. there could be only one */96 #define SL_EINVAL(-22)/* Invalid argument */97 #define SL_EAUTO_CONNECT_OR_CONNECTING(-69)/* Transceiver – During connection, connected or auto mode started */98 #define SL_CONNECTION_PENDING(-72)/* Transceiver – Device is connected, disconnect first to open transceiver */99 #define SL_EUNSUPPORTED_ROLE(-86)/* Transceiver – Trying to start when WLAN role is AP or P2P GO */100 #define SL_EDESTADDRREQ(-89)/* Destination address required */101 #define SL_EPROTOTYPE(-91)/* Protocol wrong type for socket */102 #define SL_ENOPROTOOPT(-92)/* Protocol not available */103 #define SL_EPROTONOSUPPORT(-93)/* Protocol not supported */104 #define SL_ESOCKTNOSUPPORT(-94)/* Socket type not supported */105 #define SL_EOPNOTSUPP(-95)/* Operation not supported on transport endpoint */106 #define SL_EAFNOSUPPORT(-97)/* Address family not supported by protocol */107 #define SL_EADDRINUSE(-98)/* Address already in use */108 #define SL_EADDRNOTAVAIL(-99)/* Cannot assign requested address */109 #define SL_ENETUNREACH(-101) /* Network is unreachable */110 #define SL_ENOBUFS(-105) /* No buffer space available */111 #define SL_EOBUFFSL_ENOBUFS 112 #define SL_EISCONN(-106) /* Transport endpoint is already connected */113 #define SL_ENOTCONN(-107) /* Transport endpoint is not connected */114 #define SL_ETIMEDOUT(-110) /* Connection timed out */115 #define SL_ECONNREFUSED(-111) /* Connection refused */116 #define SL_EALREADY(-114) /* Non blocking connect in progress, try again */ 117 118 #define SL_ESEC_RSA_WRONG_TYPE_E(-130)/* RSA wrong block type for RSA function */119 #define SL_ESEC_RSA_BUFFER_E(-131)/* RSA buffer error, output too small or */120 #define SL_ESEC_BUFFER_E(-132)/* output buffer too small or input too large */121 #define SL_ESEC_ALGO_ID_E(-133)/* setting algo id error */122 #define SL_ESEC_PUBLIC_KEY_E(-134)/* setting public key error */123 #define SL_ESEC_DATE_E(-135)/* setting date validity error */124 #define SL_ESEC_SUBJECT_E(-136)/* setting subject name error */125 #define SL_ESEC_ISSUER_E(-137)/* setting issuername error */126 #define SL_ESEC_CA_TRUE_E(-138)/* setting CA basic constraint true error */127 #define SL_ESEC_EXTENSIONS_E(-139)/* setting extensions error */128 #define SL_ESEC_ASN_PARSE_E(-140)/* ASN parsing error, invalid input */129 #define SL_ESEC_ASN_VERSION_E(-141)/* ASN version error, invalid number */130 #define SL_ESEC_ASN_GETINT_E(-142)/* ASN get big _i16 error, invalid data */131 #define SL_ESEC_ASN_RSA_KEY_E(-143)/* ASN key init error, invalid input */132 #define SL_ESEC_ASN_OBJECT_ID_E(-144)/* ASN object id error, invalid id */133 #define SL_ESEC_ASN_TAG_NULL_E(-145)/* ASN tag error, not null */134 #define SL_ESEC_ASN_EXPECT_0_E(-146)/* ASN expect error, not zero */135 #define SL_ESEC_ASN_BITSTR_E(-147)/* ASN bit string error, wrong id */136 #define SL_ESEC_ASN_UNKNOWN_OID_E(-148)/* ASN oid error, unknown sum id */137 #define SL_ESEC_ASN_DATE_SZ_E(-149)/* ASN date error, bad size */138 #define SL_ESEC_ASN_BEFORE_DATE_E(-150)/* ASN date error, current date before */139 #define SL_ESEC_ASN_AFTER_DATE_E(-151)/* ASN date error, current date after */140 #define SL_ESEC_ASN_SIG_OID_E(-152)/* ASN signature error, mismatched oid */141 #define SL_ESEC_ASN_TIME_E(-153)/* ASN time error, unknown time type */142 #define SL_ESEC_ASN_INPUT_E(-154)/* ASN input error, not enough data */143 #define SL_ESEC_ASN_SIG_CONFIRM_E(-155)/* ASN sig error, confirm failure */144 #define SL_ESEC_ASN_SIG_HASH_E(-156)/* ASN sig error, unsupported hash type */145 #define SL_ESEC_ASN_SIG_KEY_E(-157)/* ASN sig error, unsupported key type */146 #define SL_ESEC_ASN_DH_KEY_E(-158)/* ASN key init error, invalid input */147 #define SL_ESEC_ASN_NTRU_KEY_E(-159)/* ASN ntru key decode error, invalid input */148 #define SL_ESEC_ECC_BAD_ARG_E(-170)/* ECC input argument of wrong type */149 #define SL_ESEC_ASN_ECC_KEY_E(-171)/* ASN ECC bad input */150 #define SL_ESEC_ECC_CURVE_OID_E(-172)/* Unsupported ECC OID curve type */151 #define SL_ESEC_BAD_FUNC_ARG(-173)/* Bad function argument provided */152 #define SL_ESEC_NOT_COMPILED_IN(-174)/* Feature not compiled in */153 #define SL_ESEC_UNICODE_SIZE_E(-175)/* Unicode password too big */154 #define SL_ESEC_NO_PASSWORD(-176)/* no password provided by user */155 #define SL_ESEC_ALT_NAME_E(-177)/* alt name size problem, too big */156 #define SL_ESEC_AES_GCM_AUTH_E(-180)/* AES-GCM Authentication check failure */157 #define SL_ESEC_AES_CCM_AUTH_E(-181)/* AES-CCM Authentication check failure */158 /* ssl tls security start with -300 offset */159 #define SL_ESEC_CLOSE_NOTIFY(-300) /* ssl/tls alerts */160 #define SL_ESEC_UNEXPECTED_MESSAGE(-310) /* ssl/tls alerts */161 #define SL_ESEC_BAD_RECORD_MAC(-320) /* ssl/tls alerts */162 #define SL_ESEC_DECRYPTION_FAILED(-321) /* ssl/tls alerts */163 #define SL_ESEC_RECORD_OVERFLOW(-322) /* ssl/tls alerts */164 #define SL_ESEC_DECOMPRESSION_FAILURE(-330) /* ssl/tls alerts */165 #define SL_ESEC_HANDSHAKE_FAILURE(-340) /* ssl/tls alerts */166 #define SL_ESEC_NO_CERTIFICATE(-341) /* ssl/tls alerts */167 #define SL_ESEC_BAD_CERTIFICATE(-342) /* ssl/tls alerts */168 #define SL_ESEC_UNSUPPORTED_CERTIFICATE(-343) /* ssl/tls alerts */169 #define SL_ESEC_CERTIFICATE_REVOKED(-344) /* ssl/tls alerts */170 #define SL_ESEC_CERTIFICATE_EXPIRED(-345) /* ssl/tls alerts */171 #define SL_ESEC_CERTIFICATE_UNKNOWN(-346) /* ssl/tls alerts */172 #define SL_ESEC_ILLEGAL_PARAMETER(-347) /* ssl/tls alerts */173 #define SL_ESEC_UNKNOWN_CA(-348) /* ssl/tls alerts */174 #define SL_ESEC_ACCESS_DENIED(-349) /* ssl/tls alerts */175 #define SL_ESEC_DECODE_ERROR(-350) /* ssl/tls alerts */176 #define SL_ESEC_DECRYPT_ERROR(-351) /* ssl/tls alerts */177 #define SL_ESEC_EXPORT_RESTRICTION(-360) /* ssl/tls alerts */178 #define SL_ESEC_PROTOCOL_VERSION(-370) /* ssl/tls alerts */179 #define SL_ESEC_INSUFFICIENT_SECURITY(-371) /* ssl/tls alerts */180 #define SL_ESEC_INTERNAL_ERROR(-380) /* ssl/tls alerts */181 #define SL_ESEC_USER_CANCELLED(-390) /* ssl/tls alerts */182 #define SL_ESEC_NO_RENEGOTIATION(-400) /* ssl/tls alerts */183 #define SL_ESEC_UNSUPPORTED_EXTENSION(-410) /* ssl/tls alerts */184 #define SL_ESEC_CERTIFICATE_UNOBTAINABLE(-411) /* ssl/tls alerts */185 #define SL_ESEC_UNRECOGNIZED_NAME(-412) /* ssl/tls alerts */186 #define SL_ESEC_BAD_CERTIFICATE_STATUS_RESPONSE(-413) /* ssl/tls alerts */187 #define SL_ESEC_BAD_CERTIFICATE_HASH_VALUE(-414) /* ssl/tls alerts */188 /* propierty secure */189 #define SL_ESECGENERAL(-450)/* error secure level general error */190 #define SL_ESECDECRYPT(-451)/* error secure level, decrypt recv packet fail */191 #define SL_ESECCLOSED(-452)/* secure layrer is closed by other size , tcp is still connected*/192 #define SL_ESECSNOVERIFY(-453)/* Connected without server verification */193 #define SL_ESECNOCAFILE(-454)/* error secure level CA file not found*/194 #define SL_ESECMEMORY(-455)/* error secure level No memoryspace available */195 #define SL_ESECBADCAFILE(-456)/* error secure level bad CA file */196 #define SL_ESECBADCERTFILE(-457)/* error secure level bad Certificate file */197 #define SL_ESECBADPRIVATEFILE(-458)/* error secure level bad private file */198 #define SL_ESECBADDHFILE(-459)/* error secure level bad DH file */199 #define SL_ESECT00MANYSSLOPENED(-460)/* MAX SSL Sockets are opened */200 #define SL_ESECDATEERROR(-461)/* connected with certificate date verification error */201 #define SL_ESECHANDSHAKETIMEDOUT(-462)/* connection timed out due to handshake time */
Viki Shi:
回复 gaoyang9992006:
赞一个