Search found 3 matches

by ryandeluz
Wed May 10, 2006 1:28 am
Forum: C++ Development
Topic: wxWidgets and Macromedia Flash
Replies: 2
Views: 974

length + 1

lowjoel,

Yes, I was just 1 character short. The following works fine:

wxString Text = wxT("<rd test2='fine'>");
sock->Write(Text.fn_str(),Text.Len()+1);

Use .Len() + 1, to include the null character that is already in the wxString.

Thanks!

Ryan
by ryandeluz
Tue May 09, 2006 9:14 pm
Forum: C++ Development
Topic: wxWidgets and Macromedia Flash
Replies: 2
Views: 974

wxWidgets and Macromedia Flash

Has anyone connected the wxSocketServer to macromedia flash? I'm having some very basic errors with the following code: wxString Text = wxT("<rde val=0.5/>"); sock->SetFlags(wxSOCKET_WAITALL|wxSOCKET_BLOCK); //sock->WriteMsg(Text.fn_str(), Text.Len()); sock->Write(Text.fn_str(), Text.Len()...
by ryandeluz
Tue May 09, 2006 7:12 pm
Forum: C++ Development
Topic: Broadcast to all clients of wxSocketServer
Replies: 1
Views: 821

Broadcast to all clients of wxSocketServer

Hi all, How do I send messages to all clients that are connected to my wxSocketServer? I am modifying the wxSocketServer sample for my own use. My socket application is basically a way for me transmit data from my wxWidgets application to an arbitrary (probably 15 or less) other open windows of flas...