void TcpListener::getMyAddresses(std::list<char*>* result) { | void TcpListener::getMyAddresses(std::list<char*>* result) { | ||||
#if defined(HAVE_GETADDRINFO) && defined(HAVE_INET_PTON) | #if defined(HAVE_GETADDRINFO) && defined(HAVE_INET_PTON) | ||||
vnc_sockaddr_t sa; | |||||
struct addrinfo *ai, *current, hints; | struct addrinfo *ai, *current, hints; | ||||
memset(&hints, 0, sizeof(struct addrinfo)); | memset(&hints, 0, sizeof(struct addrinfo)); |
rdr::UBPP colour; | rdr::UBPP colour; | ||||
int count; | int count; | ||||
rdr::UBPP c0, c1, ci = 0; | |||||
int i, n0, n1, ni; | |||||
info->rleRuns = 0; | info->rleRuns = 0; | ||||
info->palette.clear(); | info->palette.clear(); | ||||
{ | { | ||||
if (needSetCursor) { | if (needSetCursor) { | ||||
rdr::U8* data; | rdr::U8* data; | ||||
int stride; | |||||
const Cursor& cursor = cp->cursor(); | const Cursor& cursor = cp->cursor(); | ||||
int length; | int length; | ||||
const rdr::U8* buffer; | const rdr::U8* buffer; | ||||
int stride, w, h; | |||||
int stride, h; | |||||
os = conn->getOutStream(); | os = conn->getOutStream(); | ||||
void VNCSConnectionST::handleRTTPong(const struct RTTInfo &rttInfo) | void VNCSConnectionST::handleRTTPong(const struct RTTInfo &rttInfo) | ||||
{ | { | ||||
unsigned rtt, delay; | unsigned rtt, delay; | ||||
int bdp; | |||||
pingCounter--; | pingCounter--; | ||||
return true; | return true; | ||||
} | } | ||||
int err = GetLastError(); | |||||
return false; | return false; | ||||
} | } |
int orig_tx, orig_ty; | int orig_tx, orig_ty; | ||||
int half_width, full_width; | int half_width, full_width; | ||||
int width, height; | |||||
int height; | |||||
tx += OUTER_MARGIN; | tx += OUTER_MARGIN; | ||||
ty += OUTER_MARGIN; | ty += OUTER_MARGIN; | ||||
tx += GROUP_MARGIN; | tx += GROUP_MARGIN; | ||||
ty += GROUP_MARGIN; | ty += GROUP_MARGIN; | ||||
width = encodingGroup->w() - GROUP_MARGIN * 2; | |||||
tightButton = new Fl_Round_Button(LBLRIGHT(tx, ty, | tightButton = new Fl_Round_Button(LBLRIGHT(tx, ty, | ||||
RADIO_MIN_WIDTH, | RADIO_MIN_WIDTH, | ||||
RADIO_HEIGHT, | RADIO_HEIGHT, | ||||
tx += GROUP_MARGIN; | tx += GROUP_MARGIN; | ||||
ty += GROUP_MARGIN; | ty += GROUP_MARGIN; | ||||
width = colorlevelGroup->w() - GROUP_MARGIN * 2; | |||||
fullcolorCheckbox = new Fl_Round_Button(LBLRIGHT(tx, ty, | fullcolorCheckbox = new Fl_Round_Button(LBLRIGHT(tx, ty, | ||||
RADIO_MIN_WIDTH, | RADIO_MIN_WIDTH, | ||||
RADIO_HEIGHT, | RADIO_HEIGHT, |
int major, minor; | int major, minor; | ||||
Bool pixmaps; | Bool pixmaps; | ||||
XErrorHandler old_handler; | XErrorHandler old_handler; | ||||
Status status; | |||||
const char *display_name = XDisplayName (NULL); | const char *display_name = XDisplayName (NULL); | ||||
/* Don't use MIT-SHM on remote displays */ | /* Don't use MIT-SHM on remote displays */ |
{ | { | ||||
int cur = 0; | int cur = 0; | ||||
int max = sizeof(keysymtab) / sizeof(struct codepair) - 1; | int max = sizeof(keysymtab) / sizeof(struct codepair) - 1; | ||||
int mid; | |||||
/* first check for Latin-1 characters (1:1 mapping) */ | /* first check for Latin-1 characters (1:1 mapping) */ | ||||
if ((ucs >= 0x0020 && ucs <= 0x007e) || | if ((ucs >= 0x0020 && ucs <= 0x007e) || |
char readError[buffersize*2]; | char readError[buffersize*2]; | ||||
char line[buffersize]; | char line[buffersize]; | ||||
char decodingBuffer[buffersize]; | char decodingBuffer[buffersize]; | ||||
char decodedValue[buffersize]; | |||||
static char servername[sizeof(line)]; | static char servername[sizeof(line)]; | ||||
// Load from the registry or a predefined file if no filename was specified. | // Load from the registry or a predefined file if no filename was specified. |