These are chat archives for chat-rooms/programming

28th
Jul 2017
LucyGamer28
@LucyGamer28
Jul 28 2017 17:25
Hello
is anyone currently online?
VoidVolker
@VoidVolker
Jul 28 2017 17:26
hi, yes
LucyGamer28
@LucyGamer28
Jul 28 2017 17:28
Excellant..thanks..I have a question...
a few actually..
Are you familiar with sending data down a socket, more specifically..limiting the amount of data sent down a socket to maybe 10 messages per sec
trying to think of a good way to do ths
VoidVolker
@VoidVolker
Jul 28 2017 17:35
and what the problem? just use sleep(100)
LucyGamer28
@LucyGamer28
Jul 28 2017 17:37
sorry how does sleep controll messages per second?
VoidVolker
@VoidVolker
Jul 28 2017 17:40
sleep(100) x 10 = 1000 ms or one second
LucyGamer28
@LucyGamer28
Jul 28 2017 17:41
you mean count how many messages I send and then as soon as I reach that limit sleep for the rest of the second
VoidVolker
@VoidVolker
Jul 28 2017 17:41
nop, just sleep after msg
LucyGamer28
@LucyGamer28
Jul 28 2017 17:42
Ah ok