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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 20270

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...
Similar Threads
Help with writing a client file Socket port number question
ObjectOutputStream thread issue
exec() method is limited in function
monitoring the connected clients to the server from diff IP's