Home | History | Annotate | Download | only in src

Lines Matching refs:pSocket

36 NFCSTATUS phFriNfc_LlcpTransport_Connectionless_HandlePendingOperations(phFriNfc_LlcpTransport_Socket_t *pSocket)
41 if ((pSocket->pfSocketSend_Cb != NULL) &&
42 (pSocket->psTransport->bSendPending == FALSE))
45 pSocket->sLlcpHeader.dsap = pSocket->socket_dSap;
46 pSocket->sLlcpHeader.ptype = PHFRINFC_LLCP_PTYPE_UI;
47 pSocket->sLlcpHeader.ssap = pSocket->socket_sSap;
50 status = phFriNfc_LlcpTransport_LinkSend(pSocket->psTransport,
51 &pSocket->sLlcpHeader,
53 &pSocket->sSocketSendBuffer,
55 pSocket->index,
56 pSocket);
73 phFriNfc_LlcpTransport_Socket_t * pSocket = NULL;
83 pSocket = &pLlcpTransport->pSocketTable[i];
86 if (pSocket->bSocketRecvPending == TRUE)
89 pSocket->bSocketRecvPending = FALSE;
92 memcpy(pSocket->sSocketRecvBuffer->buffer, psData->buffer, psData->length);
95 *pSocket->receivedLength = psData->length;
98 pSocket->pfSocketRecvFrom_Cb(pSocket->pRecvContext, ssap, NFCSTATUS_SUCCESS);
99 pSocket->pfSocketRecvFrom_Cb = NULL;
104 if((pSocket->indexRwWrite - pSocket->indexRwRead) < pSocket->localRW)
106 writeIndex = pSocket->indexRwWrite % pSocket->localRW;
108 pSocket->sSocketRwBufferTable[writeIndex].buffer[0] = ssap;
110 memcpy(pSocket->sSocketRwBufferTable[writeIndex].buffer + 1,
113 pSocket->sSocketRwBufferTable[writeIndex].length = psData->length;
116 pSocket->indexRwWrite++;