First of all, let me introduce myself. I'm a newb in BMax and i want to implement network on a program i have finished. (quite a description huh? but i don't want to bore anyone)
I'm tired :(, i have like 3 days trying to make things work but i get to nowhere... i really need some help.
This is a really stupid question but here it goes. I want to write into a TSocketSTream...
I can use Write(int/byte/string) with file streams like:
local stream:TStream = WriteStream("test.txt")
WriteInt 5
How do i do the same with TSocketStreams?
if i do:
Local ss_stream:TSocketStream = CreateSocketStream(sk_socket)
ss_stream.WriteInt 5
it sais "Error Writing to Stream"
Any Clue?
And btw, i want to do this via sockets even if BnetEx sounds like the best choice... I would use GNet but there arent any working tutorials right now and i cant get it done by myself... :(
Thanks in advance!
I'm tired :(, i have like 3 days trying to make things work but i get to nowhere... i really need some help.
This is a really stupid question but here it goes. I want to write into a TSocketSTream...
I can use Write(int/byte/string) with file streams like:
local stream:TStream = WriteStream("test.txt")
WriteInt 5
How do i do the same with TSocketStreams?
if i do:
Local ss_stream:TSocketStream = CreateSocketStream(sk_socket)
ss_stream.WriteInt 5
it sais "Error Writing to Stream"
Any Clue?
And btw, i want to do this via sockets even if BnetEx sounds like the best choice... I would use GNet but there arent any working tutorials right now and i cant get it done by myself... :(
Thanks in advance!