Visual Basic - Duda Winsock

Life is soft - evento anual de software empresarial
 
Vista:

Duda Winsock

Publicado por vbman (7 intervenciones) el 27/08/2006 18:28:52
¡Hola a todos foreros! Vereis, estoy liado con una aplicacion en la k se utiliza el
objeto winsock. Me he bajado un ejemplo de internet, y las direcciones con las k
trabaja este programa son del tipo http://64.236.34.4:80/stream/1003
El problema esta en k cuando yo obtengo mas direcciones de este tipo (son streamings mp3) la forma k tienen son del siguiente tipo (es la misma direccion k http://64.236.34.4:80/stream/1003): http://www.di.fm/mp3/trance.pls (la he conseguido haciendo click con el boton derecho sobre su enlace y seleccionando "Copiar la ruta del enlace", todo esto en el firefox (en ie obviamente tb se puede)).

Resumiendo, ¿como se traduce http://www.di.fm/mp3/trance.pls en http://64.236.34.4:80/stream/1003?

Parece k esta claro k 64.236.34.4 es la ip de www.di.fm y 80 es el puerto en el k se establece la conexion, pero, ¿cm obtengo el resto ("/stream/1003")?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Duda Winsock

Publicado por Paul (16 intervenciones) el 07/10/2008 02:08:32
tenés que bajarte el archivo ese http://www.di.fm/mp3/trance.pls
después lo abrís con un editor de texto y tenés esto

[playlist]
NumberOfEntries=9
File1=http://scfire-ntc-aa02.stream.aol.com:80/stream/1003
Title1=D I G I T A L L Y - I M P O R T E D - European Trance, Techno, Hi-NRG... we can't define it!
Length1=-1
File2=http://scfire-nyk-aa02.stream.aol.com:80/stream/1003
Title2=D I G I T A L L Y - I M P O R T E D - European Trance, Techno, Hi-NRG... we can't define it!
Length2=-1
File3=http://scfire-nyk-aa03.stream.aol.com:80/stream/1003
Title3=D I G I T A L L Y - I M P O R T E D - European Trance, Techno, Hi-NRG... we can't define it!
Length3=-1
File4=http://scfire-chi-aa01.stream.aol.com:80/stream/1003
Title4=D I G I T A L L Y - I M P O R T E D - European Trance, Techno, Hi-NRG... we can't define it!
Length4=-1
File5=http://scfire-nyk-aa04.stream.aol.com:80/stream/1003
Title5=D I G I T A L L Y - I M P O R T E D - European Trance, Techno, Hi-NRG... we can't define it!
Length5=-1
File6=http://scfire-chi-aa02.stream.aol.com:80/stream/1003
Title6=D I G I T A L L Y - I M P O R T E D - European Trance, Techno, Hi-NRG... we can't define it!
Length6=-1
File7=http://scfire-ntc-aa03.stream.aol.com:80/stream/1003
Title7=D I G I T A L L Y - I M P O R T E D - European Trance, Techno, Hi-NRG... we can't define it!
Length7=-1
File8=http://scfire-ntc-aa04.stream.aol.com:80/stream/1003
Title8=D I G I T A L L Y - I M P O R T E D - European Trance, Techno, Hi-NRG... we can't define it!
Length8=-1
File9=http://scfire-nyk-aa02.stream.aol.com:80/stream/1003
Title9=D I G I T A L L Y - I M P O R T E D - European Trance, Techno, Hi-NRG... we can't define it!
Length9=-1
Version=2

espero que te sirva, ahí tenés los distintos servidores al os que te podés conectar.
Paul.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar