socket.c 파일에서 send() 함수의 내용중 주석 처리한 부분을 다음과 같이 고치는게 맞지 않나요?
uint16 send(SOCKET s, const uint8 * buf, uint16 len, int retry)
{
…
// if(ret != 0) // error code
// 2013-07-30 wiznet fix the code to add condition “retry”
if(retry || ret != 0)
{
txrd_before_send = IINCHIP_READ(Sn_TX_RD0(s));
txrd_before_send = (txrd_before_send << 8) + IINCHIP_READ(Sn_TX_RD0(s) + 1);
IINCHIP_WRITE(Sn_CR(s),Sn_CR_SEND);
/* wait to process the command... */
while( IINCHIP_READ(Sn_CR(s)) );
while ( (IINCHIP_READ(Sn_IR(s)) & Sn_IR_SEND_OK) != Sn_IR_SEND_OK )
{
[color=#FF0000] // ************************************************************************
// 다음 if 함수 내 조건문 오류 같다…
// if(IINCHIP_READ(Sn_IR(s)) == SOCK_CLOSED)
if( (IINCHIP_READ(Sn_IR(s)) & Sn_IR_DISCON) == Sn_IR_DISCON)
// ************************************************************************[/color]
…