0

Is there a way to initialize an android LocalServerSocket with SOCKET_SEQPACKET type to avoid handling packet boundaries?

Eldar
  • 149
  • 2
  • 12

1 Answers1

1

Yes, LocalServerSocket has constructor that gets a file descriptor. Initialize a LocalSocket with LocalSocket.SOCKET_SEQPACKET, bind it to LocalSocketAddress and pass its file descriptor to the LocalServerSocket constructor.

Eldar
  • 149
  • 2
  • 12