In what situations should i use Socket class or XMLSocket when trying to connect from Flex to a Java Server that is going to listen to开发者_StackOverflow中文版 a port?
The answer is rather simple: An XMLSocket will send/receive XML data while a Socket will send/receive binary data
Check out the adobe livedocs for more information
Cheers
精彩评论