Forums Register Login

Doubt in ServerSocket and Socket

+Pie Number of slices to send: Send
hi,

what is the difference between the the Socket object created by client side as



and the Socket object created in the Server side as


Next, should I use the sockets reversely ?
+Pie Number of slices to send: Send
A socket has two end points - one on the client and one on the server, even if the client and server are on the same physical machine.

The first call creates the end point on the client side. ServerSocket.accept returns the end point on the server side. They are two different objects, but linked through the network.
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1471 times.
Similar Threads
Client Server Communication
not able to connect...
Objects to capture!!
applet loading forever...
sockets and printwriting
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:59:05.