Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more
Diff: core/uip/NyLPC_cIPv4.c
- Revision:
- 43:a182f2b5ff41
- Parent:
- 37:fc4b4fd6a649
- Child:
- 48:00d211aac2ec
--- a/core/uip/NyLPC_cIPv4.c Thu Jul 04 11:05:56 2013 +0000
+++ b/core/uip/NyLPC_cIPv4.c Tue Jul 09 12:07:17 2013 +0000
@@ -151,9 +151,9 @@
}
/**
- * i_peer番号に一致するリスナを返します。
+ * i_port番号に一致するリスナを返します。
*/
-static NyLPC_TcTcpListener_t* cSocketTbl_getListenerByPeerPort(NyLPC_TcPtrTbl_t* i_inst,NyLPC_TUInt16 i_peer_port)
+static NyLPC_TcTcpListener_t* cSocketTbl_getListenerByPeerPort(NyLPC_TcPtrTbl_t* i_inst,NyLPC_TUInt16 i_port)
{
NyLPC_TcBaseSocket_t** p=(NyLPC_TcBaseSocket_t**)(i_inst->buf);
NyLPC_TcTcpListener_t* lp;
@@ -164,7 +164,7 @@
continue;
}
lp=(NyLPC_TcTcpListener_t*)p[i];
- if(lp->_port!=i_peer_port){
+ if(lp->_port!=i_port){
continue;
}
return lp;
@@ -449,11 +449,7 @@
return NyLPC_TBool_TRUE;
}
//リスナにソケットのバインドを依頼する。
- sock=NyLPC_cTcpListener_makeSynRcvdSocket(listener,i_ipp);
- if(sock==NULL){
- //Listen失敗。ドロップ
- goto DROP;
- }
+ NyLPC_cTcpListener_synPacket(listener,i_ipp);
return NyLPC_TBool_FALSE;//LISTEN成功。送信データなし
}
return NyLPC_TBool_TRUE;
MiMic Webservice library