Hi All,
I am trying to come up with a solution to the Airtime Coding Challenge at http://challenge.airtime.com:2324/instructions in Java.
Basic Scenario is as follows:
Step1: Connect to the TCP server at challenge.airtime.com:2323
Step 2: Upon connection, the server will send you a handshake packet: "WHORU:<challenge number>\n" without quotes, encoded in UTF-8.
Step 3: You must then send an identification packet: "IAM:<challenge number>:<user email address>:at\n" without quotes, encoded in UTF-8.
Step 4: If the identification was successful, the server will respond with a success packet containing your identification code. "SUCCESS:<identification code>\n" without quotes, encoded in UTF-8.
My Code is as follows:
I am unable to go past sending the Identification Packet to the server. I only get a Null from the tcp server for my Identification Packet instead of "SUCCESS:<identification code>\n"
The output i get is as follows:
The Output i receive is as below:
Message sent to the server is Hello AirTime Challenge!
Message received from the server is WHORU:4741557577
constructing the Identification packet to be sent to server...
The first part of response is WHORU
The second part of response is 4741557577
Identification packet that will be sent to the server is IAM:4741557577:sampleuser@gmail.com:at
Message received from the server is null
I am unable to understand why I am getting a NULL from the server in response to my identification packet...
Please help!!
Thanks.
I am trying to come up with a solution to the Airtime Coding Challenge at http://challenge.airtime.com:2324/instructions in Java.
Basic Scenario is as follows:
Step1: Connect to the TCP server at challenge.airtime.com:2323
Step 2: Upon connection, the server will send you a handshake packet: "WHORU:<challenge number>\n" without quotes, encoded in UTF-8.
Step 3: You must then send an identification packet: "IAM:<challenge number>:<user email address>:at\n" without quotes, encoded in UTF-8.
Step 4: If the identification was successful, the server will respond with a success packet containing your identification code. "SUCCESS:<identification code>\n" without quotes, encoded in UTF-8.
My Code is as follows:
I am unable to go past sending the Identification Packet to the server. I only get a Null from the tcp server for my Identification Packet instead of "SUCCESS:<identification code>\n"
The output i get is as follows:
The Output i receive is as below:
Message sent to the server is Hello AirTime Challenge!
Message received from the server is WHORU:4741557577
constructing the Identification packet to be sent to server...
The first part of response is WHORU
The second part of response is 4741557577
Identification packet that will be sent to the server is IAM:4741557577:sampleuser@gmail.com:at
Message received from the server is null
I am unable to understand why I am getting a NULL from the server in response to my identification packet...
Please help!!
Thanks.