Vinod S
June 21st, 2004, 09:34 AM
Hi all
i am creating a chat program which supports voice and video. i am stucked now. i am using CSocket class for the connections. my voice communication got problem. i have created a separate thread to record and play voice. i will send the voice buffer to the server. where the server will redirect the voice buffer to curesponding client.
here is my problem. i have used CArchive for the data transfer. but i found the server is hanging with in minuts after the soud chat is ennabled. for the sound is a continuies stream i am sending a buffer of size 8000 chars twice per second. so my server getting hanged unable to handle this packets.
then i used sockets Send function for the communication. it worked in lan but when i moved to internet it floped. its showing error just after some seconds
can anybody give me a remedy for this. my real problem is to transfer voice data buffer through internet. i am stucked here. hope to get a reply soon from this forum
i am creating a chat program which supports voice and video. i am stucked now. i am using CSocket class for the connections. my voice communication got problem. i have created a separate thread to record and play voice. i will send the voice buffer to the server. where the server will redirect the voice buffer to curesponding client.
here is my problem. i have used CArchive for the data transfer. but i found the server is hanging with in minuts after the soud chat is ennabled. for the sound is a continuies stream i am sending a buffer of size 8000 chars twice per second. so my server getting hanged unable to handle this packets.
then i used sockets Send function for the communication. it worked in lan but when i moved to internet it floped. its showing error just after some seconds
can anybody give me a remedy for this. my real problem is to transfer voice data buffer through internet. i am stucked here. hope to get a reply soon from this forum