[Redbutton-devel] SF.net SVN: redbutton: [16] redbutton-browser/trunk/MHEGBackend.c
Brought to you by:
skilvington
|
From: <ski...@us...> - 2006-03-04 14:42:45
|
Revision: 16 Author: skilvington Date: 2006-03-04 06:42:35 -0800 (Sat, 04 Mar 2006) ViewCVS: http://svn.sourceforge.net/redbutton/?rev=16&view=rev Log Message: ----------- default backend is at 127.0.0.1 Modified Paths: -------------- redbutton-browser/trunk/MHEGBackend.c Modified: redbutton-browser/trunk/MHEGBackend.c =================================================================== --- redbutton-browser/trunk/MHEGBackend.c 2006-03-03 16:51:20 UTC (rev 15) +++ redbutton-browser/trunk/MHEGBackend.c 2006-03-04 14:42:35 UTC (rev 16) @@ -56,13 +56,15 @@ { bzero(b, sizeof(MHEGBackend)); + /* default backend is on the loopback */ + b->addr.sin_family = AF_INET; + b->addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); + b->addr.sin_port = htons(DEFAULT_REMOTE_PORT); + if(remote) { /* backend is on a different host, srg_loc is the remote host[:port] */ b->fns = &remote_backend_fns; - b->addr.sin_family = AF_INET; - b->addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); - b->addr.sin_port = htons(DEFAULT_REMOTE_PORT); if(parse_addr(srg_loc, &b->addr.sin_addr, &b->addr.sin_port) < 0) fatal("Unable to resolve host %s", srg_loc); verbose("Remote backend at %s:%u", inet_ntoa(b->addr.sin_addr), ntohs(b->addr.sin_port)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |