I get stuck up in the following code. I am trying to do the following:
1. Making a connection 2. Writing something on it. 3. Reading from the socket.
Surprisingly while trying to read from the socket it fails toread anything in first attempt. Even trying available() method returns 00. but a subsequent reading always gives me the data back available on the socket. Though even in this attempt the available() method returns 0.
Why it is showing such a behaviour? Am I doing something wrong? Can you pl help me
regards, Arun
Joel McNary
Bartender
Joined: Aug 20, 2001
Posts: 1815
posted
0
This seems a bit beyond the beginner stage, so I'm moving it to the I/O and Streams forum. Mayhaps you'll get a better answer there.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.