This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Client Sockets... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Client Sockets..." Watch "Client Sockets..." New topic

Client Sockets...

Sathish Babu Adluru Subas

Joined: Jan 19, 2000
Posts: 26
Hi javacs,
In my client app,i've created all the Socket,I/O Streams, Object I/O streams,etc in the class's constructor and iam able to read/write Objects from/to the server. but iam not able to read/write objects from/to the server from another method of the same class.(ie)iam not able to get hold of the socket in the class's method though all the variables are global to the class.
well,what might be the prob? help me please...
paul wheaton

Joined: Dec 14, 1998
Posts: 20861

Can you provide us with a SHORT code example?

permaculture Wood Burning Stoves 2.0 - 4-DVD set
Sathish Babu Adluru Subas

Joined: Jan 19, 2000
Posts: 26
well,i solved the prob myself by using threads.thanx,anyway..
I agree. Here's the link:
subject: Client Sockets...
It's not a secret anymore!