Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adrianbrs/trab-calc-sockets-udp-python
Trabalho da disciplina de Ubiquitous Computing envolvendo Socket UDP em Python
https://github.com/adrianbrs/trab-calc-sockets-udp-python
cloud protocols python3 sockets ubiquitous-computing udp-socket
Last synced: 3 days ago
JSON representation
Trabalho da disciplina de Ubiquitous Computing envolvendo Socket UDP em Python
- Host: GitHub
- URL: https://github.com/adrianbrs/trab-calc-sockets-udp-python
- Owner: adrianbrs
- Created: 2023-10-31T13:23:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-06T12:54:59.000Z (11 months ago)
- Last Synced: 2024-01-29T00:37:19.789Z (10 months ago)
- Topics: cloud, protocols, python3, sockets, ubiquitous-computing, udp-socket
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Calculadora com sockets - UPF 2023/2
> Trabalho da disciplina de Ubiquitous Computing envolvendo Socket UDP em Python
## Empacotamento dos dados
### Mensagem de entrada (request)
IncomingMessage
max 35 bytes
(opcional conforme operador)
2 bytes
max 16 bytes
1 byte
max 16 bytes
byte 0
byte 1
byte 2+n1
byte 2+n1+1
byte 2+n1+1+n2
operador
tipo val 1 | n1
valor 1
tipo val 2 | n2
valor 2
### Mensagem de saída (response)
OutgoingMessage
max 17 bytes
byte 0
byte 1+n1
tipo val 1 | n1
valor 1
### Operações
Operation
código
operação
argumentos
0x00
+
2
0x01
-
2
0x02
*
2
0x03
/
2
0x04
sqrt
1
0x05
pow
2
0x06
log
2
0xFF
exit
0
### Tipos de valores
ValueType
código
tipo
0x0
int
0x1
float
## Entrada
```bash
[, ...]
```