Searched refs:sSockFd (Results 1 – 3 of 3) sorted by relevance
/external/openthread/src/posix/platform/ |
D | virtual_time.cpp | 52 static int sSockFd = -1; ///< Socket used to communicating with simulator. variable 86 sSockFd = SocketWithCloseExec(AF_INET, SOCK_DGRAM, IPPROTO_UDP, kSocketBlock); in virtualTimeInit() 88 if (sSockFd == -1) in virtualTimeInit() 93 if (bind(sSockFd, (struct sockaddr *)&sockaddr, sizeof(sockaddr)) == -1) in virtualTimeInit() 101 if (sSockFd != -1) in virtualTimeDeinit() 103 close(sSockFd); in virtualTimeDeinit() 104 sSockFd = -1; in virtualTimeDeinit() 118 rval = sendto(sSockFd, aEvent, aLength, 0, (struct sockaddr *)&sockaddr, sizeof(sockaddr)); in virtualTimeSendEvent() 128 ssize_t rval = recvfrom(sSockFd, aEvent, sizeof(*aEvent), 0, nullptr, nullptr); in virtualTimeReceiveEvent() 172 FD_SET(sSockFd, aReadFdSet); in virtualTimeUpdateFdSet() [all …]
|
/external/openthread/examples/platforms/simulation/virtual_time/ |
D | platform-sim.c | 63 int sSockFd; variable 83 …rval = sendto(sSockFd, aEvent, offsetof(struct Event, mData) + aEvent->mDataLength, 0, (struct soc… in otSimSendEvent() 96 ssize_t rval = recvfrom(sSockFd, (char *)&event, sizeof(event), 0, NULL, NULL); in receiveEvent() 203 sSockFd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in socket_init() 205 if (sSockFd == -1) in socket_init() 211 if (bind(sSockFd, (struct sockaddr *)&sockaddr, sizeof(sockaddr)) == -1) in socket_init() 264 close(sSockFd); in otSysDeinit() 284 FD_SET(sSockFd, &read_fds); in otSysProcessDrivers() 285 max_fd = sSockFd; in otSysProcessDrivers() 303 if (rval > 0 && FD_ISSET(sSockFd, &read_fds)) in otSysProcessDrivers()
|
/external/openthread/examples/platforms/simulation/ |
D | radio.c | 73 extern int sSockFd;
|