Mallick Srinivas Choppa

Greenhorn
+ Follow
since Jan 20, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mallick Srinivas Choppa

HI,
When you want to receive data on one socket and send data on the defferent socket then i would say let your client and server have both client socket and server sockets .
Client application will have server socket and client socket capability.
Server application will have server socket and client socket capability.
I mean like open a server socket on server and listen for client. once the client makes a connection to server send information of the client(like its the host Ip and port where it listening ) and now server will use this information(ip and port of the client) and connects to the client. so this way one socket can used for sending and another can be used for receiving.(This type connection is used by CuteFTP if i am not wrong).
This is best way what i can thing of, as we also used such type of communication.
hope this helps
Mallick
Hi,
Socket connection can be made to any PC on the network . But as on internet due to firewalls which actually protects the system from external hacking will prevent you to make a socket connection. so as long as firewall allows we can connect to any system.
thanks
Mallick
Hi,
The best way to stop the thread is use interrupt() of the Thread class.
Probably you may be waiting in the thread so whenever you call interrupt menthod the thread object it is caugth in the exception and then you can smoothly end the thread.
Hope this would help.
Mallick