问题
I am attempting to run the qt examples multistreamserver & multistreamclient, which rely on the QSctpServer & QSctpSocket.
I receive errors "QSctpSosket does not name a type" and "invalid use of incomplete type 'class QSctpServer'"
What is going on?
Running Ubuntu 16.04, Qt 5.10.1
回答1:
SCTP functionality does not exist in windows... so by default sctp is disabled.
You must configure qt with the -sctp flag and the -static commands, make sure to link any libraries you need as well.
来源:https://stackoverflow.com/questions/49503376/qt-stream-control-transmission-protocol-sctp