i am writing a p2p chat room. i wana everyone every one's message will be cryptograph so i wanna to sent my publicKey to other client. but can i set it using datagramSockets.or i must do it by using Sockets with the ObjectOutput stream? P.S. can i use the message(which is a string) send by a datagramSockets directly.i have leaned that when message is send througth the internet,it will be added somthing like " ".is that ture? if that is ture can you tell me how i can handle it. Thank you for y help !