0:13 AM
MatrixTraveler[m has quit
0:13 AM
Matthew[m] has quit
0:13 AM
jonathanj has quit
0:13 AM
erikj` has quit
0:15 AM
lukky513 has quit
0:16 AM
hexnewbie has quit
0:18 AM
hexnewbie joined the channel
0:20 AM
itamarst has quit
0:30 AM
clokep_tb joined the channel
0:31 AM
lukky513 joined the channel
0:46 AM
MatrixTraveler[m joined the channel
0:46 AM
rthille-ciena has quit
1:03 AM
Matthew[m] joined the channel
1:03 AM
erikj` joined the channel
1:03 AM
Evidlo joined the channel
1:03 AM
jonathanj joined the channel
1:09 AM
clokep_tb has quit
2:21 AM
itamar has quit
2:54 AM
Evidlo has quit
2:54 AM
jonathanj has quit
2:54 AM
Matthew[m] has quit
2:54 AM
erikj` has quit
2:55 AM
MatrixTraveler[m has quit
3:02 AM
kenaan_
Tickets pending review:
https://tm.tl/#9299 , #9305, #9333, #9337, #9338, #9340, #9343 (rodrigc), #9350 (ktdreyer), #9210 (markrwilliams), #9358, #9353, #9362, #9365 (axiaoxin), #9374, #8966 (the0id), #9100, #9118 (the0id), #4964 (jameshilliard), #9138, #9176, #9287
3:51 AM
Hasimir has quit
4:50 AM
sje46 is now known as seanicus
5:47 AM
Matthew[m] joined the channel
6:11 AM
dude-x_ has quit
6:12 AM
dude-x_ joined the channel
6:27 AM
jonathanj joined the channel
6:27 AM
Evidlo joined the channel
6:28 AM
MatrixTraveler[m joined the channel
6:28 AM
erikj` joined the channel
8:03 AM
Tickets pending review:
https://tm.tl/#9299 , #9305, #9333, #9337, #9338, #9340, #9343 (rodrigc), #9350 (ktdreyer), #9210 (markrwilliams), #9358, #9353, #9362, #9365 (axiaoxin), #9374, #8966 (the0id), #9100, #9118 (the0id), #4964 (jameshilliard), #9138, #9176, #9287
8:21 AM
DigiDigi has quit
8:27 AM
psi29a joined the channel
8:30 AM
DigiDigi joined the channel
8:34 AM
codingquark joined the channel
8:36 AM
codingquark
Hello! I want to receive a message in the following way: First 2 bytes are reserved for a status number. Next 2 bytes specify the full length of the message. This makes 4 bytes. After this, the payload starts. I want to parse the second 2 bytes to know how long I should keep receiving and then close the connection.
8:36 AM
How should I do this?
8:36 AM
Which API should I look at?
8:36 AM
Thanks!
8:53 AM
oberstet joined the channel
9:07 AM
efphe joined the channel
9:18 AM
yuhl joined the channel
9:18 AM
yuhl has quit
9:38 AM
psi29a has quit
9:54 AM
psi29a joined the channel
10:46 AM
I am using struct to find out the bytes to receive. Now I have to find how to close connection after those many bytes are received.
11:06 AM
LichtMacher joined the channel
11:40 AM
itamar joined the channel
11:45 AM
senaps joined the channel
11:56 AM
oberstet has quit
12:00 PM
senaps has quit
12:03 PM
LordVan joined the channel
12:05 PM
jsarver has quit
12:10 PM
I have a question about the behavior of `internet.protocol.Protocol.dataReceived()`. Is this method called several times during the transmission of the message? The docs say "partial (or multiple) protocol messages may be received", which hints that it will be called multiple times.
12:32 PM
__marco joined the channel
12:43 PM
senaps joined the channel
12:56 PM
rominux joined the channel
13:02 PM
kenaan_
Tickets pending review:
https://tm.tl/#9299 , #9305, #9333, #9337, #9338, #9340, #9343 (rodrigc), #9350 (ktdreyer), #9210 (markrwilliams), #9358, #9353, #9362, #9365 (axiaoxin), #9374, #8966 (the0id), #9100, #9118 (the0id), #4964 (jameshilliard), #9138, #9176, #9287
13:10 PM
oberstet joined the channel
13:11 PM
senaps
rominux how you doing bruh
13:14 PM
rominux
senaps
13:14 PM
@senaps fine
13:34 PM
oberstet has quit
13:47 PM
slav0nic joined the channel
13:55 PM
senaps has quit
14:04 PM
Hasimir joined the channel
14:27 PM
itamar has quit
14:41 PM
rajesh joined the channel
14:55 PM
altendky joined the channel
15:07 PM
itamarst joined the channel
15:27 PM
LordVan has quit
16:36 PM
psi29a has quit
16:39 PM
__marco has quit
16:52 PM
iffy joined the channel
17:12 PM
dude-x_ has quit
17:15 PM
dude-x_ joined the channel
17:19 PM
jamesaxl joined the channel
17:20 PM
c0ded has quit
17:23 PM
meejah
codingquark: yes, dataReceived may (worst case) be called once for each byte received; you have to "frame" messages yourself
17:23 PM
Hasimir has quit
17:24 PM
codingquark
meejah: okay, so I shall maintain, a buffer if it can be called, in the protocol class.
17:24 PM
meejah
17:24 PM
codingquark: yes
17:25 PM
codingquark
meejah: yea, I went through a few of those sections :)
17:25 PM
meejah
codingquark: there are things like "NetStringReceiver" and "LineReceiver" that do particular types of framing for you
17:25 PM
znpy has quit
17:25 PM
(but it sounds like yours is a little different than NetStringReceiver will give you though)
17:26 PM
codingquark
I feel my requirement is not "conventional" :-P
17:30 PM
znpy joined the channel
17:30 PM
Hasimir joined the channel
17:33 PM
meejah
it's not that weird. but, you do get to do message-framing yourself ;)
17:34 PM
codingquark
Gives some pain, but is fun.
17:55 PM
efphe has quit
17:57 PM
runciter
18:00 PM
iffy has left the channel
18:02 PM
kenaan_
Tickets pending review:
https://tm.tl/#9299 , #9305, #9333, #9337, #9338, #9340, #9343 (rodrigc), #9350 (ktdreyer), #9210 (markrwilliams), #9358, #9353, #9362, #9365 (axiaoxin), #9374, #8966 (the0id), #9100, #9118 (the0id), #4964 (jameshilliard), #9138, #9176, #9287
18:06 PM
codingquark
runciter: that might work! I'll try, thanks!
18:06 PM
rthille-ciena joined the channel
18:06 PM
runciter
codingquark: it won't work without some modification, because of the 2 byte status
18:07 PM
codingquark: but you can either subclass it to modify its behavior, or look at its implementation for inspiration
18:07 PM
codingquark
I agree...
18:21 PM
jamesaxl
Hi
18:21 PM
How can I router all urls to index.html?
18:23 PM
s/router/route
18:33 PM
runciter
19:07 PM
energizer joined the channel
19:07 PM
rajesh has quit
19:10 PM
kenaan_
new core enhancement
https://tm.tl/#9375 by rhettinger: Separate collections from collections.abc
19:18 PM
rodrigc submitted <
https://tm.tl/#9375> ; - Separate collections from collections.abc (unassigned) for review
20:13 PM
jamesaxl has quit
20:13 PM
jamesaxl joined the channel
20:34 PM
efphe joined the channel
20:35 PM
jamesaxl has quit
20:37 PM
jamesaxl joined the channel
20:43 PM
rweir has quit
21:34 PM
rweir joined the channel
21:46 PM
mesozoic joined the channel
21:55 PM
kolko has quit
22:24 PM
jamesaxl has quit
22:29 PM
efphe has quit
22:30 PM
slav0nic has quit
22:59 PM
energizer has quit
23:00 PM
energizer joined the channel
23:01 PM
energizer has quit
23:02 PM
energizer joined the channel
23:02 PM
Tickets pending review:
https://tm.tl/#9299 , #9305, #9333, #9337, #9338, #9340, #9343 (rodrigc), #9350 (ktdreyer), #9210 (markrwilliams), #9358, #9353, #9362, #9365 (axiaoxin), #9374, #9375, #8966 (the0id), #9100, #9118 (the0id), #4964 (jameshilliard), #9138, #9176, #9287
23:04 PM
altendky has quit
23:07 PM
itamar joined the channel
23:54 PM
altendky joined the channel