x******g 发帖数: 319 | 1 how to multicast objects to clients in java?
if just use socket, i also need to write a server.
multicastsocket sounds easy.
any suggestions? |
c*****t 发帖数: 1879 | 2 java.net.MulticastSocket javadoc has the tutorial for how to use it.
It really depends whether or not to use it. If you are writing a
LAN game or query flooding, then it is faster. Otherwise, I don't
see why you should use it.
【在 x******g 的大作中提到】 : how to multicast objects to clients in java? : if just use socket, i also need to write a server. : multicastsocket sounds easy. : any suggestions?
|
m**c 发帖数: 90 | 3
Check out the open-source project called "javagroups". We used it to
implement our own cluster environment.
【在 c*****t 的大作中提到】 : java.net.MulticastSocket javadoc has the tutorial for how to use it. : It really depends whether or not to use it. If you are writing a : LAN game or query flooding, then it is faster. Otherwise, I don't : see why you should use it.
|
x******g 发帖数: 319 | 4 the thing is how to multicast objects?
sample only told me to multicast string, char...
thanks
【在 c*****t 的大作中提到】 : java.net.MulticastSocket javadoc has the tutorial for how to use it. : It really depends whether or not to use it. If you are writing a : LAN game or query flooding, then it is faster. Otherwise, I don't : see why you should use it.
|
f********h 发帖数: 149 | 5 you need to build your own protocol using rmi.
【在 x******g 的大作中提到】 : the thing is how to multicast objects? : sample only told me to multicast string, char... : thanks
|
m******t 发帖数: 2416 | 6 Would JINI happen to be what you are looking for?
【在 x******g 的大作中提到】 : the thing is how to multicast objects? : sample only told me to multicast string, char... : thanks
|
c*****t 发帖数: 1879 | 7 ffdt.
Read the sample again. It first converts a string into bytes, then
put these bytes into datagram packet and then send it out.
What you can do to send objects is to first serialize the objects
into bytes, then put the bytes into datagram...
【在 x******g 的大作中提到】 : the thing is how to multicast objects? : sample only told me to multicast string, char... : thanks
|
x******g 发帖数: 319 | 8 I just got how to serialize objects.【 在 coconut (coconut) 的大作中提到: 】 |