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?
(If not an alternate solution like typedef SOCKET and DATATYPE in a common
platform header or compiler define.)
Winblows :
WSAAPI
send(
_In_ SOCKET s,
_In_reads_bytes_(len) const char FAR * buf,
_In_ int len,
_In_ int flags
);
i.e
int RTSPClient::write(const char* data, unsigned count)
{
if (fTLS.isNeeded) {
return fTLS.write((const u_int8_t*)data, count);
} else {
return send(fOutputSocketNum, data, count, 0);
}
}
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel