Hi, Im new here. Although I've been using blitzmax for a bit. :)
I tried to connect to a server and send a string through UDP and recieve the string the server sends. I see in my packet analyzer program the server responds, but i cannot seem to get the string recieved in BlitzMax.
Heres my code
Is there anything Im doing wrong?
I tried to connect to a server and send a string through UDP and recieve the string the server sends. I see in my packet analyzer program the server responds, but i cannot seem to get the string recieved in BlitzMax.
Heres my code
Framework BRL.Socket Import BRL.SocketStream Import BRL.StandardIO Global serverIP = HostIp("83.149.87.203") Global port = 7778 Local socket:TSocket=CreateUDPSocket() ConnectSocket(socket,serverIP,port) Local stream:TStream=CreateSocketStream(socket,autoclose=False) WriteLine(stream,"\info") Repeat Print ReadLine(stream) Until Eof(stream) CloseSocket(socket)
Is there anything Im doing wrong?