开发者

how to listen continuosly for instream or outstrem in sockets

开发者 https://www.devze.com 2023-03-06 16:17 出处:网络
I am making a chat application in android using TCP and has immplement开发者_StackOverflowed Sockets. Which is working but in case of receiving or sending only the first msg is considered.

I am making a chat application in android using TCP and has immplement开发者_StackOverflowed Sockets. Which is working but in case of receiving or sending only the first msg is considered. eg. client:hi server:hi server:hows u?

so in this case hows u? is not accessible at client / server side. In both cases instream is closed after receiving once. Can any One suggest what could be the issues or how i can solve them???


If it is not listening for server continuously, then there might be a problem with your code. Post your code.

Check if this fits your requirement. Android chat functionality?

0

精彩评论

暂无评论...
验证码 换一张
取 消