Displaying 6 results from an estimated 6 matches for "sock_t".
2004 Aug 06
1
[PATCH] IceCast2 - aliasing (reimplementation of the patch I posted earlier)
...log;
Only in IceCast/src: config.o
diff -ur icecast/src/connection.c IceCast/src/connection.c
--- icecast/src/connection.c 2003-04-18 11:00:19.000000000 -0400
+++ IceCast/src/connection.c 2003-04-18 20:45:54.000000000 -0400
@@ -109,11 +109,12 @@
return id;
}
-connection_t *create_connection(sock_t sock, char *ip) {
+connection_t *create_connection(sock_t sock, sock_t serversock, char *ip) {
connection_t *con;
con = (connection_t *)malloc(sizeof(connection_t));
memset(con, 0, sizeof(connection_t));
con->sock = sock;
+ con->serversock = serversock;
con->con...
2004 Aug 06
0
[PATCH] IceCast2 - socket-based default mount
..._tag
Only in IceCast/src: config.o
diff -ur icecast/src/connection.c IceCast/src/connection.c
--- icecast/src/connection.c 2003-03-27 12:09:41.000000000 -0500
+++ IceCast/src/connection.c 2003-04-18 09:44:50.000000000 -0400
@@ -109,11 +109,12 @@
return id;
}
-connection_t *create_connection(sock_t sock, char *ip) {
+connection_t *create_connection(sock_t sock, sock_t serversock, char *ip) {
connection_t *con;
con = (connection_t *)malloc(sizeof(connection_t));
memset(con, 0, sizeof(connection_t));
con->sock = sock;
+ con->serversock = serversock;
con->con...
2007 May 15
0
Setting explicitly the source of slaves connections
...to.
Then I changed a few things to not care too much about not being given a
source hostname (falling back to an INET_ANY or whatever connect uses
while not being bound to a specific IP).
The "problem" is that the sock_connect_wto must now be given another
parameter, the source hostname sock_t sock_connect_wto(const char
*source, const char *hostname, int port, int timeout).
It's only called in slave.c, where I just made the call to get_config()
a little earlier, and I send config->hostname as the source. This would
probably have to be documented, or changed to another parameter...
2009 Jul 06
1
Nonblocking connect is not proprly checked in poll implementation
...e from select implementation into poll branch and it fixed the
problem. Patch follows.
-- Petr
Index: src/net/sock.c
===================================================================
--- src/net/sock.c (revision 16208)
+++ src/net/sock.c (working copy)
@@ -516,17 +516,27 @@
int sock_connected (sock_t sock, int timeout)
{
struct pollfd check;
+ int val = SOCK_ERROR;
+ socklen_t size = sizeof val;
check.fd = sock;
check.events = POLLOUT;
switch (poll (&check, 1, timeout*1000))
{
case 0: return SOCK_TIMEOUT;
+ default:
+ /* on window...
2017 Nov 16
0
[PATCH] [libshout] tls: compile with OpenSSL 1.1.0
...ls.c
index d1af607c0014..fc8a748f3ecf 100644
--- a/src/tls.c
+++ b/src/tls.c
@@ -24,6 +24,7 @@
#endif
#include <shout/shout.h>
+#include <string.h>
#include "shout_private.h"
#ifndef XXX_HAVE_X509_check_host
@@ -61,16 +62,20 @@ shout_tls_t *shout_tls_new(shout_t *self, sock_t socket)
static inline int tls_setup(shout_tls_t *tls)
{
- SSL_METHOD *meth;
+ const SSL_METHOD *meth;
+#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
SSL_library_init();
SSL_load_error_strings();
SSLeay_add_all_algorithms();
SSLeay_...
2010 Jul 30
33
[PATCHES] Smartjog PatchDump
Hello,
I work at SmarctJog.com, we have here some patches on IceCast for
performance and reliability, these are mostly client/connection/source
cleanups (a slave merge is underway, and some more good stuff (c)),
but we'd like this to be merged in before the list gets any longer.
Please find attached a list of our patches with a short desc:
This one is actually not from us/me, it was found