Hello everyone,
So, in another related post, i got the chat to send to a java server, cool.
Now, it's a matter of sending it back to VB.
on the server side of things, (in java), I am using the following code:
JAVA Code:
public static void sendback(String what2send) throws IOException { ObjectOutputStream oos = new ObjectOutputStream(mySocket.getOutputStream()); log.info("Got text: "+ what2send); oos.writeBytes(what2send); oos.flush(); }
now, on vb, i am using:
VB Code:
Dim received As Byte() received = New Byte(1023) {} Dim readbytes As Integer = 0 readbytes = clientSocket.GetStream().Read(received, 0, received.Length) Debug.Print("Output from server: " & serverStream.Read(received, 0, readbytes))
it seems to be freezing on the serverStream.read portion.
Now, I am no expert to sockets, and am able to do a vb to vb client/server chat, however going from java to vb is way new to me.
Any help or guidance would be GREATLY appreciated.




Reply With Quote