Send and receive in socket

Downs default_357-line at yahoo.de
Wed Aug 15 14:03:19 PDT 2007


Downs wrote:
> well there's always the cheap way to do it
> void socksend(T)(Socket s, T value) { s.send((cast(void
> *)&T)[0..T.sizeof]); }
> 
Arrgh. Sorry. Clicked "send" without rereading.
Naturally, it has to be &value.
 --downs


More information about the Digitalmars-d-learn mailing list