c# and android communication

Programming
Tutor: None Selected Time limit: 3 Days

i had alreay provided

Oct 18th, 2013

I don't think there is anything wrong in your server code. You are getting the output "Try i = 1" because you are writing this text to console in your server code. See the below line:

Console.WriteLine("Outside Try i = {0}", i.ToString());
try
            {
socket = listeningSocket.Accept(); . . .

It will just print this and wait till a connection is made to the server from the client. This is what I understand. Did you try to connect to the server using the client? If the connection is successful then other messages will be printed to console, or the client is not able to reach the server. 

If the client is able to reach the server and then if there are any issues, then the messages in the catch block will be printed. Can you post what messages you are exactly seeing on the screen?

Thanks!



Oct 18th, 2013

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Oct 18th, 2013
...
Oct 18th, 2013
Dec 5th, 2016
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer