SCTP support.
This commit is contained in:
@@ -67,7 +67,7 @@ ClientThread::~ClientThread()
|
||||
|
||||
void
|
||||
ClientThread::Init(
|
||||
const string &serverAddress, unsigned serverPort, bool ipv6, const string &pwd, const string &playerName)
|
||||
const string &serverAddress, unsigned serverPort, bool ipv6, bool sctp, const string &pwd, const string &playerName)
|
||||
{
|
||||
if (IsRunning())
|
||||
{
|
||||
@@ -77,6 +77,7 @@ ClientThread::Init(
|
||||
|
||||
ClientContext &context = GetContext();
|
||||
|
||||
context.SetProtocol(sctp ? SOCKET_IPPROTO_SCTP : 0);
|
||||
context.SetAddrFamily(ipv6 ? AF_INET6 : AF_INET);
|
||||
context.SetServerAddr(serverAddress);
|
||||
context.SetServerPort(serverPort);
|
||||
|
||||
Reference in New Issue
Block a user