netch80: (bird)
[personal profile] netch80
address.sin_port = htons( ( port & 0xff )<<8 | (port & 0xff00) >> 8);


Смысл этой конструкции от меня ускользает. (Особенно, когда через несколько строк address.sin_port передаётся в функцию, которая ждёт значение в host order.)

А если в Java написать Integer.reverse(x) вместо Integer.reverseBytes(x), без привлечения утёнка проблема не решается.
From:
Anonymous (will be screened)
OpenID (will be screened if not validated)
Identity URL: 
User
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.

Profile

netch80: (Default)
netch80

April 2017

S M T W T F S
      1
234 5678
9101112131415
1617 181920 2122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 27th, 2017 10:17 am
Powered by Dreamwidth Studios