File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 20916

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..
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Client Sockets...
jQuery in Action, 3rd edition