std.socket tutorials? examples?

bauss jj_1337 at live.dk
Thu Oct 4 13:11:00 UTC 2018


On Thursday, 4 October 2018 at 13:09:17 UTC, bauss wrote:
> On Thursday, 4 October 2018 at 13:07:30 UTC, bauss wrote:
>>
>> buffer = buffer[0 .. $]; // Slice the buffer to the actual 
>> size of the received data.
>> ```
>
> Typo...
>
> Was supposed to be "received" and not "$"...
>
>> buffer = buffer[0 .. received]; // Slice the buffer to the 
>> actual size

Another typo is "recv" should be "received".

That's what happens when you copy-paste from old code.


More information about the Digitalmars-d-learn mailing list