I am trying to use dbus-java as both a client and server on Windows. Windows does not support Unix sockets, so TCP must be used.
However, I found that authentication would always hang when using TCP. It was because :-
1) The zero byte at the start of the TCP conversation was being read, but the state flag was no moved on to the next state, so this read kept repeating sinking the actual command.
2) At the end of the authentication, BEGIN was not being sent.
I am trying to use dbus-java as both a client and server on Windows. Windows does not support Unix sockets, so TCP must be used.
However, I found that authentication would always hang when using TCP. It was because :-
1) The zero byte at the start of the TCP conversation was being read, but the state flag was no moved on to the next state, so this read kept repeating sinking the actual command. 2) At the end of the authentication, BEGIN was not being sent.