java - UDP client/server chat -
i planning make java chat messenger. facing problem. client side cannot send message until receives message server side program. how fix this?
i have different code server side , client side. client side program.
datagrampacket send_packet = new datagrampacket(send_data, send_data.length, ipaddress, 5020); client_socket.send(send_packet); datagrampacket dpacket = new datagrampacket(recv_data, recv_data.length); client_socket.receive(dpacket); string msg = new string(dpacket.getdata(),0,dpacket.getlength()); system.out.println("aman2: \n" + msg);
Comments
Post a Comment