L
Leo
When I create a socket such as Socket sock = new Socket(address, port)
and I pass some garbage value to address field like (123334) or
something like that, the client just hangs up and does not throw any
exceptions or anything. The funny thing is, when the address field is
composed of characters, say I have "123.45.6.adasd" as the address
then java does throw an exception, but if I only have numbers, it does
not. What is going on?
P.S.
This only happens when I compile and run on UNIX. In windows it works
fine, it timesout and throws an exception with both characters and
numbers.
I am using sdk 1.4.1
and I pass some garbage value to address field like (123334) or
something like that, the client just hangs up and does not throw any
exceptions or anything. The funny thing is, when the address field is
composed of characters, say I have "123.45.6.adasd" as the address
then java does throw an exception, but if I only have numbers, it does
not. What is going on?
P.S.
This only happens when I compile and run on UNIX. In windows it works
fine, it timesout and throws an exception with both characters and
numbers.
I am using sdk 1.4.1