Hi! Ok i Have some code and its currently not working. Here it is.
It connects fine and sends the string fine. But the problem is I can't read the response from the server with BlitzMax.
Every other prog I used gets the response. I think this is a bug in blitzmax because I'm checking my packets being recieved and the server does respond. Look here: 'http://img472.imageshack.us/my.php?image=whatthe0qh.png'
I dont know the forum codes either. How do I make a link to this picture? the forum automatically includes it.
And why does UDP always report its been connected when it the ip address is not valid.
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)
It connects fine and sends the string fine. But the problem is I can't read the response from the server with BlitzMax.
Every other prog I used gets the response. I think this is a bug in blitzmax because I'm checking my packets being recieved and the server does respond. Look here: 'http://img472.imageshack.us/my.php?image=whatthe0qh.png'
I dont know the forum codes either. How do I make a link to this picture? the forum automatically includes it.
And why does UDP always report its been connected when it the ip address is not valid.