owsei@programming.devtoProgrammer Humor@lemmy.ml•Python is great, but stuff like this just drives me up the wall
1·
6 months agoEven if they do have the same in-memory representation, you may want to assert types as different just by name.
AccountID: u64
TransactionID: u64
have the same in-memory representation, but are not interchangeable.
TCP is the way that you send information, HTTP is what it means.
The difference, in your case, is the port. You
can’tCAN have TCP and UDP on the same port, but you can’t have the same protocol on the same port.edit: I didn’t knew you could have different transfer protocols on the same port, ty!