1 | #include <stdint.h> |
1 | #include <stdint.h> |
2 | #include <cstdlib> |
2 | #include <cstdlib> |
3 | #include <cstring> |
3 | #include <cstring> |
|
|
4 | #include <cstdio> |
4 | |
5 | |
5 | #include <unistd.h> |
6 | #include <unistd.h> |
6 | #include <sys/utsname.h> |
7 | #include <sys/utsname.h> |
7 | #include <limits.h> |
8 | #include <limits.h> |
8 | |
9 | |
… | |
… | |
74 | |
75 | |
75 | void rxvt_connection::send (int data) |
76 | void rxvt_connection::send (int data) |
76 | { |
77 | { |
77 | uint8_t s[4]; |
78 | uint8_t s[4]; |
78 | |
79 | |
79 | s[0] = data >> 24; s[1] = data >> 16; s[0] = data >> 8; s[1] = data; |
80 | s[0] = data >> 24; s[1] = data >> 16; s[2] = data >> 8; s[3] = data; |
80 | |
81 | |
81 | write (fd, s, 4); |
82 | write (fd, s, 4); |
82 | } |
83 | } |
83 | |
84 | |
84 | bool rxvt_connection::recv (int &data) |
85 | bool rxvt_connection::recv (int &data) |