05-21-2013 04:24 AM
I am trying to receive port based SMS with the below piece of code.
Socket client = serverSocket.accept();
BufferedReaderin=newBufferedReader(newInputStreamReader(client.getInputStream())); line =null;
System.out.println("Reading Line is>>>>>>>>>>>>>"+line);
System.out.println("Exception While Reading SMS>>>>>>>>>>"+e);
Will it wait in the line of serverSocket.accept(); until it gets the port based SMS,Is this correct behaviour or I am making any issue which hangs at that place.I am not able to move beyond it.
I am not able to test fully,I am not having option of testing it here,sending the port message.
Did anyone came across this issue.Any Info regarding this will be useful.