[Live-devel] raw PCM from TCP socket to RTP
Ross Finlayson
finlayson at live555.com
Tue May 15 02:24:08 PDT 2012
> I want to close the socket but have a name conflict with Medium::close(). The old library functions are not in name spaces and I can’t figure out how, or find the technique on the web, to use the standard file descriptor/socket close() function rather than the Media::close() method. Is there a simple solution?
You could try calling
::close(socket);
If that doesn't work, then just do something like
static int closeSocket(int d) { return close(d); }
YourMediumSubclass::memberFunction() {
closeSocket(socket);
}
Or, if you have a FID* for the socket, call
fclose(fid);
instead.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120515/449d12b2/attachment-0001.html>
More information about the live-devel
mailing list