Old 2nd June 2002, 03:23   #1
TheSarlacc
Junior Member
 
TheSarlacc's Avatar
 
Join Date: Jun 2002
Location: Australia
Posts: 2
Send a message via ICQ to TheSarlacc
redirect problem

i have developed a small program that streams audio over a LAN. and im using winamp as the client. here is my problem: i have 2 winsock controls listening (i am using VB) on 9000 and 9001. when winamp connects to the control on port 9000, how can i get it to re-connect to the control on port 9001? what packets do i need to send?
TheSarlacc is offline   Reply With Quote
Old 3rd June 2002, 01:36   #2
Gourou
Senior Member
 
Gourou's Avatar
 
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
ummm, no, I dont think it works that way
when you bind a listen port, such as a web server, it listens on port 80, the port it replies on, doesnt have to be 80, that's dealt with by the server, you really shouldnt have to worry about it when using sockets, I do believe it streams data back on port 80, but it can come back from any port, soze...
9000, it accepts requests, but that's only needed as a bound port for a program, when it sends the stream back, I believe it sends it back using port 9001, I think. btw, winsock controls prolly wont work, you'll need a socket, since it's http, unless you've figured out a way around that
Gourou is offline   Reply With Quote
Old 3rd June 2002, 11:31   #3
TheSarlacc
Junior Member
 
TheSarlacc's Avatar
 
Join Date: Jun 2002
Location: Australia
Posts: 2
Send a message via ICQ to TheSarlacc
yea :)

yep i have figured a way around it. and i figured out a way around the problem i posted. but thanks anyways. TheSarlacc
TheSarlacc is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump