<div dir="ltr">In RTSPClient, Would it be better to have the cast from char* to
u_int8_t* inside the write function, so those operations systems that expect send to have a char * will not need re-casting?<div>(If not an alternate solution like typedef SOCKET and DATATYPE in a common platform header or compiler define.)<br><div><br></div><div>Winblows :<br>WSAAPI<br>send(<br> _In_ SOCKET s,<br> _In_reads_bytes_(len) const char FAR * buf,<br> _In_ int len,<br> _In_ int flags<br> );<div><br></div><div>i.e<br><div>int RTSPClient::write(const char* data, unsigned count) </div><div>{</div> if (fTLS.isNeeded) {<br> return fTLS.write((const u_int8_t*)data, count);<br> } else {<br> return send(fOutputSocketNum, data, count, 0);<br> }<br>}</div></div></div></div>