= %d\\n\ } }
Execute Result:
Client (Enter ‘R’ and get the datum):
} sprintf_s(sendBuf, \HUMIDITY = %d T,H,L); printf(\send(sockConnect, sendBuf, strlen(sendBuf)+1, 0); LIGHT Temperature.close(); Humidity.close(); Light.close(); closesocket(sockConnect); } closesocket(sockSrv); WSACleanup(); return 0;
6 / 7
Server(One Client & Two or more clients):
Conclusion:
This socket communication is dependent on TCP protocol. Network programming is still following create->initialize->communicate->close this sequence.
7 / 7