search for: _parse_listen_socket

Displaying 6 results from an estimated 6 matches for "_parse_listen_socket".

2005 Jul 20
1
relaying IceCast from ShoutCast
...ne MAX_LISTEN_SOCKETS 10 > > That can be increased but that would need recompiling, what would be a > reasonable limit and do you need so many ports to listen on? In fact, it could fairly easily be made dynamic, rather than having this sort of static limit. The bug is pretty obvious, see _parse_listen_socket() in cfgfile.c. If you did make it dynamic, it'd likely be a good idea to make connection.c:wait_for_serversock() not reallocate the entire poll or select structures on every call, as that would get pretty inefficient at several hundred sockets. But that's not really a big deal. Mike
2015 Mar 22
2
exposed-port option for Icecast behind reverse proxy
...00644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -436,6 +436,10 @@ static void _parse_root(xmlDocPtr doc, xmlNodePtr node, configuration->mimetypes_fn = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); } else if (xmlStrcmp (node->name, XMLSTR("listen-socket")) == 0) { _parse_listen_socket(doc, node->xmlChildrenNode, configuration); + } else if (xmlStrcmp (node->name, XMLSTR("exposed-port")) == 0) { + tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); + configuration->exposed_port = atoi(tmp); + if (tmp) xmlFree(tmp); } else if (xmlStrcmp (node-&...
2005 Nov 11
0
[PATCH] icecast video preview 2
...AULT_VIDEO_PREVIEW; } static void _parse_root(xmlDocPtr doc, xmlNodePtr node, @@ -422,6 +424,10 @@ configuration->hostname = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); } else if (strcmp(node->name, "listen-socket") == 0) { _parse_listen_socket(doc, node->xmlChildrenNode, configuration); + } else if (strcmp(node->name, "video-preview") == 0) { + tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); + configuration->video_preview = atoi(tmp); + if (tmp) xmlFree(tmp); } else if...
2005 Jul 20
4
relaying IceCast from ShoutCast
This is killing me... I've tried everything I can think of, but Icecast still crashes if I define more than 10 listen-socket ports. Is there a limit that's not documented or is this a bug? I'm using the latest Windows build that OddSock compiled. Thanks for any help/ideas Fred -----Original Message----- From: Fred Black [mailto:fred@batanga.com] Sent: Tuesday, July 19, 2005
2005 Nov 11
2
[PATCH] icecast video preview 2
Updated version of video preview covering frame writing every 3 keyframe and a xsl typo. Best regards :) kysucix -- Make things as simple as possible, but no simpler. - Albert Einstein
2005 Nov 11
1
[PATCH] icecast video preview
Hi. Here it is my patch to put a video preview of a theora stream in status.xsl. I just added a: <video-preview>1</video-preview> parameters in icecast.xml.in that control the previewing function. It encodes a png in $webroot/$mountname.tmp and then move it to $webroot/$mountname.png As for now it saves a frame every theora keyframe, which is probably too heavy for the server but