skypiax: added comment for socket buffer modification for Virtual Machines
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16323 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5af28a148e
commit
2731b1e580
|
@ -89,6 +89,10 @@ unsigned short start_port = 6001;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* for virtual machines, eg: Linux domU-12-31-39-02-68-28 2.6.18-xenU-ec2-v1.0 #2 SMP Tue Feb 19 10:51:53 EST 2008 i686 athlon i386 GNU/Linux
|
||||||
|
* use:
|
||||||
|
* sockbufsize=SAMPLES_PER_FRAME * 8;
|
||||||
|
*/
|
||||||
sockbufsize=SAMPLES_PER_FRAME * 8 * 3;
|
sockbufsize=SAMPLES_PER_FRAME * 8 * 3;
|
||||||
size = sizeof(int);
|
size = sizeof(int);
|
||||||
setsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&sockbufsize, size);
|
setsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&sockbufsize, size);
|
||||||
|
@ -98,6 +102,10 @@ unsigned short start_port = 6001;
|
||||||
getsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&sockbufsize, &size);
|
getsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&sockbufsize, &size);
|
||||||
DEBUGA_SKYPE("2 SO_RCVBUF is %d, size is %d\n", SKYPIAX_P_LOG, sockbufsize, size);
|
DEBUGA_SKYPE("2 SO_RCVBUF is %d, size is %d\n", SKYPIAX_P_LOG, sockbufsize, size);
|
||||||
|
|
||||||
|
/* for virtual machines, eg: Linux domU-12-31-39-02-68-28 2.6.18-xenU-ec2-v1.0 #2 SMP Tue Feb 19 10:51:53 EST 2008 i686 athlon i386 GNU/Linux
|
||||||
|
* use:
|
||||||
|
* sockbufsize=SAMPLES_PER_FRAME * 8;
|
||||||
|
*/
|
||||||
sockbufsize=SAMPLES_PER_FRAME * 8 * 3;
|
sockbufsize=SAMPLES_PER_FRAME * 8 * 3;
|
||||||
size = sizeof(int);
|
size = sizeof(int);
|
||||||
setsockopt(s, SOL_SOCKET, SO_SNDBUF, (char *)&sockbufsize, size);
|
setsockopt(s, SOL_SOCKET, SO_SNDBUF, (char *)&sockbufsize, size);
|
||||||
|
|
Loading…
Reference in New Issue