c# and android communication

Anonymous
timer Asked: Oct 18th, 2013
account_balance_wallet $5

Question Description

i had alreay provided

Tutor Answer

fixit
School: UCLA

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!



flag Report DMCA
Review

Anonymous
awesome work thanks

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors