Socket. Send and Receive Data RRS feed

  • Question

  • Hello.

    I have a C# Silverlight Aplication that I need to communicate with a VB6 Application by Socket.
    I tried using a lot of examples by Google and create some codes but anything could help me.

    How can I have a Socket that I call the method ConnectAsync and after at the Completed (of connect) I send a message inside a byte[] and at Completed (of sender) I receive a return (string message can be inside a byte[]) of the server to continue the process ?
    Whats I need to implement at my Server that will receive and send a string ?
    Is this possible with Socket Silverlight ?

    I tried use these links but without success.

    1. http://msdn.microsoft.com/en-us/library/system.net.sockets.socketasynceventargs(v=vs.95).aspx

    2. http://techblogging.wordpress.com/2008/04/17/creating-a-chat-application-using-socket-in-silverlight/

    3. http://stackoverflow.com/questions/11816802/asynchronous-socket-connection-in-silverlight

    4. http://programming4.us/website/6742.aspx

    5. http://w3mentor.com/learn/asp-dot-net-c-sharp/asp-dot-net-language-basics/use-sockets-to-send-and-receive-images-in-c-net/

    Please somebody could help me ? If I was not clear I can explain it again...

    Thank advance

    Atenciosamente, Seratti. Se esta resposta lhe ajudar "marque-a".

    Thursday, August 8, 2013 8:07 PM