File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Client Sockets..." Watch "Client Sockets..." New topic
Author

Client Sockets...

Sathish Babu Adluru Subas
Greenhorn

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
Trailboss

Joined: Dec 14, 1998
Posts: 20488
    ∞

Can you provide us with a SHORT code example?


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

Joined: Jan 19, 2000
Posts: 26
well,i solved the prob myself by using threads.thanx,anyway..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Client Sockets...
 
Similar Threads
Help with writing a client file
ObjectOutputStream thread issue
monitoring the connected clients to the server from diff IP's
exec() method is limited in function
java.net Socket port number question