@@ -22,17 +22,23 | |||
|
22 | 22 | #define PUERTO_SERVIDOR 5500 No newline at end of file |
|
23 | 23 | //#define DIR_SERVIDOR "10.10.12.255" No newline at end of file |
|
24 | 24 | #define DIR_SERVIDOR "192.168.1.255" No newline at end of file |
|
25 | #define TAM_BUFFER 100 | |
|
No newline at end of file | ||
|
26 | No newline at end of file | |
|
25 | 27 | No newline at end of file |
|
26 | 28 | int ClienteUDP(char *opcion, char *valor){ No newline at end of file |
|
27 | 29 | No newline at end of file |
|
28 | 30 | int conexion_clienteFD; |
|
31 | No newline at end of file | |
|
29 | struct sockaddr_in inf_servidor; No newline at end of file | |
|
No newline at end of file | ||
|
32 | struct sockaddr_storage inf_cliente; No newline at end of file | |
|
30 | 33 | No newline at end of file |
|
31 | 34 | int broadcast= 1; No newline at end of file |
|
32 | 35 | int resultado; No newline at end of file |
|
33 | 36 | int numbytes_enviados; No newline at end of file |
|
37 | int numbytes_recibidos; | |
|
No newline at end of file | ||
|
38 | size_t addr_len; No newline at end of file | |
|
34 | 39 | No newline at end of file |
|
35 | 40 | char *buff_peticion; No newline at end of file |
|
41 | char *buff_rx = (char *) malloc(TAM_BUFFER); No newline at end of file | |
|
36 | 42 | char *comando= NULL; No newline at end of file |
|
37 | 43 | No newline at end of file |
|
38 | 44 | if (strcmp(opcion,"-l") == 0){ // Se reconoce el comando que se esta enviando No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now