Send and receive in socket

Charma Motoko_Kusanagi at web.de
Wed Aug 15 22:31:39 PDT 2007


Carlos Santander schrieb:
> Charma escribió:
>> Hello,
>> I try to use the std.socket to send data from a client to a "server". 
>> Up to now i managed to get a connection and to send strings and chars 
>> of text but i am not able to send and receive floats or other types of 
>> numbers...
>> Maybe anyone knows how to do that?
>> the socket-command only accepts void[] and i have no idea how to make 
>> an array from the 4 bytes that a float has...
>>
>> Thanks for any help,
>> sorry for my engrish...
>>
>> Charma
> 
> Maybe std.socketstream has what you're looking for?
> 


Yes thank you, that was exactly what i was looking for... Stupid me... 
Well, everything works perfectly now.

Thanks a lot!


More information about the Digitalmars-d-learn mailing list