problem in TELNETing using java

Hi guys,

i am trying to telnet to an external gsm modem using java, The program is supposed to use the modem for sms messaging and i am having issues doing this.

I tried using the "socket" class in the java.net package and stream packages in the java.io package ,and i've still not been successful at this.

At some point i a getting the initial response after connection, but it's coming out in bytes/binary. i tried all binary to string methods i know and the closest i've come is converting it to something like hashcodes --> "[B@923e30[B@923e30

"

I would like to know how i can do this, as its really given me a headache.

has anyone done this

[694 byte] By [Lexandera] at [2007-11-27 3:49:46]
# 1

Given that you are connecting the means that you have TCP/IP.

Other than that you must communicate via a protocol - that is how data (not characters, not strings, not classes) are transmitted.

I can only guess that you are creating both ends and you are using toString() to 'send' a class. That won't normall work unless you wrote the toString() method yourself (or it is the String class.)

jschella at 2007-7-12 8:53:40 > top of Java-index,Core,Core APIs...
# 2
Please try this link,hopefully it will help u... http://www.informit.com/guides/content.asp?g=java&seqNum=40&rl=1
profilemia at 2007-7-12 8:53:40 > top of Java-index,Core,Core APIs...