Home | History | Annotate | Download | only in src

Lines Matching refs:pSocketTable

112       switch(psTransport->pSocketTable[psTransport->socketIndex].eSocket_State)
117 psTransport->pSocketTable[psTransport->socketIndex].eSocket_State = phFriNfc_LlcpTransportSocket_eSocketConnected;
119 psTransport->pSocketTable[psTransport->socketIndex].pfSocketAccept_Cb(psTransport->pSocketTable[psTransport->socketIndex].pAcceptContext,status);
120 psTransport->pSocketTable[psTransport->socketIndex].pfSocketAccept_Cb = NULL;
121 psTransport->pSocketTable[psTransport->socketIndex].pAcceptContext = NULL;
127 psTempLlcpSocket = psTransport->pSocketTable[psTransport->socketIndex];
130 result = phFriNfc_LlcpTransport_Close(&psTransport->pSocketTable[psTransport->socketIndex]);
139 if(!psTransport->pSocketTable[psTransport->socketIndex].bSocketSendPending && psTransport->pSocketTable[psTransport->socketIndex].pfSocketSend_Cb != NULL)
141 psTransport->pSocketTable[psTransport->socketIndex].pfSocketSend_Cb(psTransport->pSocketTable[psTransport->socketIndex].pSendContext,status);
142 psTransport->pSocketTable[psTransport->socketIndex].pfSocketSend_Cb = NULL;
159 if(psTransport->pSocketTable[index].bSocketAcceptPending == TRUE
160 || psTransport->pSocketTable[index].bSocketConnectPending == TRUE
161 || psTransport->pSocketTable[index].bSocketDiscPending == TRUE
162 || psTransport->pSocketTable[index].bSocketRNRPending == TRUE
163 || psTransport->pSocketTable[index].bSocketRRPending == TRUE
164 || psTransport->pSocketTable[index].bSocketSendPending == TRUE
165 || psTransport->pSocketTable[index].pfSocketSend_Cb != NULL)
169 psLocalLlcpSocket = &psTransport->pSocketTable[index];
298 //psTransport->pSocketTable[psTransport->socketIndex].sSocketSendBuffer.length = psTransport->pSocketTable[psTransport->socketIndex].bufferSendMaxLength;
303 if(!psTransport->pSocketTable[psTransport->socketIndex].bSocketSendPending && psTransport->pSocketTable[psTransport->socketIndex].pfSocketSend_Cb != NULL)
305 psTransport->pSocketTable[psTransport->socketIndex].pfSocketSend_Cb(psTransport->pSocketTable[psTransport->socketIndex].pSendContext,status);
306 psTransport->pSocketTable[psTransport->socketIndex].pfSocketSend_Cb = NULL;
533 if(psTransport->pSocketTable[index].socket_sSap == dsap
534 && psTransport->pSocketTable[index].socket_dSap == ssap)
546 psTransport->pSocketTable[index].eSocket_State = phFriNfc_LlcpTransportSocket_eSocketDefault;
549 psTransport->pSocketTable[index].pSocketErrCb( psTransport->pSocketTable[index].pContext,PHFRINFC_LLCP_ERR_FRAME_REJECTED);
552 status = phFriNfc_LlcpTransport_ConnectionOriented_Close(&psTransport->pSocketTable[index]);
723 if(psTransport->pSocketTable[index].bSocketListenPending
724 && (sServiceName.length == psTransport->pSocketTable[index].sServiceName.length)
725 && !memcmp(sServiceName.buffer,psTransport->pSocketTable[index].sServiceName.buffer,sServiceName.length))
730 psLocalLlcpSocket = &psTransport->pSocketTable[index];
747 if(psTransport->pSocketTable[index].bSocketListenPending && psTransport->pSocketTable[index].socket_sSap == dsap)
752 psLocalLlcpSocket = &psTransport->pSocketTable[index];
772 if(psTransport->pSocketTable[index].eSocket_State == phFriNfc_LlcpTransportSocket_eSocketDefault && socketFound != TRUE)
776 psTransport->pSocketTable[index].index = index;
777 psTransport->socketIndex = psTransport->pSocketTable[index].index;
780 pLlcpSocket = &psTransport->pSocketTable[index];
795 else if(((psTransport->pSocketTable[index].eSocket_State == phFriNfc_LlcpTransportSocket_eSocketConnected)
796 || (psTransport->pSocketTable[index].eSocket_State == phFriNfc_LlcpTransportSocket_eSocketAccepted))
797 && ((psTransport->pSocketTable[index].socket_sSap == ssap)&&(psTransport->pSocketTable[index].socket_dSap == dsap)))
891 if(psTransport->pSocketTable[index].eSocket_State == phFriNfc_LlcpTransportSocket_eSocketConnecting
892 && psTransport->pSocketTable[index].socket_sSap == dsap)
898 psTransport->pSocketTable[index].socket_dSap = ssap;
901 psLocalLlcpSocket = &psTransport->pSocketTable[index];
948 if(psTransport->pSocketTable[index].eSocket_State == phFriNfc_LlcpTransportSocket_eSocketConnected
949 && psTransport->pSocketTable[index].socket_sSap == dsap)
955 psLocalLlcpSocket = &psTransport->pSocketTable[index];
1023 psTransport->pSocketTable[index].pSocketErrCb(psTransport->pSocketTable[index].pContext, PHFRINFC_LLCP_ERR_DISCONNECTED);
1069 if((psTransport->pSocketTable[index].eSocket_State == phFriNfc_LlcpTransportSocket_eSocketDisconnecting
1070 || psTransport->pSocketTable[index].eSocket_State == phFriNfc_LlcpTransportSocket_eSocketConnecting)
1071 && psTransport->pSocketTable[index].socket_sSap == dsap)
1077 psLocalLlcpSocket = &psTransport->pSocketTable[index];
1161 if(( (psTransport->pSocketTable[index].eSocket_State == phFriNfc_LlcpTransportSocket_eSocketConnected)
1162 || (psTransport->pSocketTable[index].eSocket_State == phFriNfc_LlcpTransportSocket_eSocketAccepted))
1163 && psTransport->pSocketTable[index].socket_sSap == dsap
1164 && psTransport->pSocketTable[index].socket_dSap == ssap)
1170 psLocalLlcpSocket = &psTransport->pSocketTable[index];
1253 psTransport->pSocketTable[psTransport->socketIndex].bSocketRecvPending = FALSE;
1412 if(psTransport->pSocketTable[index].eSocket_State == phFriNfc_LlcpTransportSocket_eSocketConnected
1413 && psTransport->pSocketTable[index].socket_sSap == dsap
1414 && psTransport->pSocketTable[index].socket_dSap == ssap)
1420 psLocalLlcpSocket = &psTransport->pSocketTable[index];
1421 psLocalLlcpSocket->index = psTransport->pSocketTable[index].index;
1527 if(psTransport->pSocketTable[index].eSocket_State == phFriNfc_LlcpTransportSocket_eSocketConnected
1528 && psTransport->pSocketTable[index].socket_sSap == dsap
1529 && psTransport->pSocketTable[index].socket_dSap == ssap)
1535 psLocalLlcpSocket = &psTransport->pSocketTable[index];
1586 psLocalLlcpSocket->pSocketErrCb(psTransport->pSocketTable[index].pContext,PHFRINFC_LLCP_ERR_BUSY_CONDITION);
1622 if(psTransport->pSocketTable[index].socket_sSap == dsap
1623 && psTransport->pSocketTable[index].socket_dSap == ssap)
1635 psTransport->pSocketTable[index].eSocket_State = phFriNfc_LlcpTransportSocket_eSocketDisconnected;
1638 psTransport->pSocketTable[index].pSocketErrCb( psTransport->pSocketTable[index].pContext,PHFRINFC_LLCP_ERR_FRAME_REJECTED);
1641 status = phFriNfc_LlcpTransport_ConnectionOriented_Close(&psTransport->pSocketTable[index]);
1844 phFriNfc_LlcpTransport_Socket_t* pCurrentSocket = &pLlcpSocket->psTransport->pSocketTable[index];