Socket Help

BlitzMax Forums/BlitzMax Beginners Area/Socket Help

Ked(Posted 2007) [#1]
What would be the BlitzMax equivalent of
t=OpenTCPStream("www.ask.com",80)
?

Thanks!


FlameDuck(Posted 2007) [#2]
Local t:TStream = OpenStream("http::www.ask.com:80")
Or something like that.


Ked(Posted 2007) [#3]
I mean, reading and writing from an already created TCP socket. Do you have an example for that?


spacerat(Posted 2007) [#4]
Perhaps you should use socket streams. Just use CreateSocketStream(Socket), then read and write from it as you would a normal stream (Socketstream.readline() etc)