[icecast-dev] net/sock.c question
msmith at xiph.org
Wed Feb 11 16:33:31 PST 2004
On Thursday 12 February 2004 03:21, Mihai RUSU wrote:
> I think this is a good solution because all socket writes are done with
> sock_write*() so we catch them all this way. Problem is that I think I
> need a mutex on this values (kbps, kbps_time, kbps_bytes) and it seems
> sock.c didnt use any yet. Whould it be a problem to use one ? (and include
> thread/thread.h ?)
You must not put this logic into sock.c, since that code is shared by other
code, it's not solely used in icecast.
Also, sock_write() doesn't have any access to the client structure, so this
wouldn't be a sensible approach anyway.
--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Icecast-dev