Socket Help

BlitzMax Forums/BlitzMax Beginners Area/Socket Help

What would be the BlitzMax equivalent of
t=OpenTCPStream("www.ask.com",80)
?

Thanks!

Local t:TStream = OpenStream("http::www.ask.com:80")
Or something like that.

I mean, reading and writing from an already created TCP socket. Do you have an example for that?

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)