SCTP support.

This commit is contained in:
lotodore committed 2007-06-04 16:49:19 +00:00
1 parent 895317a257
commit e6d1b46ba1
13 files changed
+32 -9

No files matched your search

+2 -1
View File
@@ -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);