Searched refs:my_socket (Results 1 – 2 of 2) sorted by relevance
/AliOS-Things-master/components/mqtt/MQTTClient-C/ |
A D | MQTTLinux.c | 71 setsockopt(n->my_socket, SOL_SOCKET, SO_RCVTIMEO, (char *)&interval, sizeof(struct timeval)); in linux_read() 76 int rc = recv(n->my_socket, &buffer[bytes], (size_t)(len - bytes), 0); in linux_read() 102 setsockopt(n->my_socket, SOL_SOCKET, SO_SNDTIMEO, (char *)&tv,sizeof(struct timeval)); in linux_write() 103 int rc = write(n->my_socket, buffer, len); in linux_write() 110 n->my_socket = 0; in NetworkInit() 154 n->my_socket = socket(family, type, 0); in NetworkConnect() 155 if (n->my_socket != -1) in NetworkConnect() 156 rc = connect(n->my_socket, (struct sockaddr*)&address, sizeof(address)); in NetworkConnect() 167 close(n->my_socket); in NetworkDisconnect()
|
A D | MQTTLinux.h | 62 int my_socket; member
|
Completed in 3 milliseconds