@@ -28,6 +28,7 @@
|
|||||||
* shall include the source code for the parts of OpenSSL used as well *
|
* shall include the source code for the parts of OpenSSL used as well *
|
||||||
* as that of the covered work. *
|
* as that of the covered work. *
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
syntax = "proto2";
|
||||||
|
|
||||||
option java_package = "de.chatcleaner.protocol";
|
option java_package = "de.chatcleaner.protocol";
|
||||||
option java_outer_classname = "ProtoBuf";
|
option java_outer_classname = "ProtoBuf";
|
||||||
|
|||||||
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
|
syntax = "proto2";
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* PokerTH - The open source texas holdem engine *
|
* PokerTH - The open source texas holdem engine *
|
||||||
* Copyright (C) 2006-2013 Felix Hammer, Florian Thauer, Lothar May *
|
* Copyright (C) 2006-2013 Felix Hammer, Florian Thauer, Lothar May *
|
||||||
@@ -701,7 +702,7 @@ message ReportGameAckMessage {
|
|||||||
|
|
||||||
message ErrorMessage {
|
message ErrorMessage {
|
||||||
enum ErrorReason {
|
enum ErrorReason {
|
||||||
reserved = 0;
|
custReserved = 0;
|
||||||
initVersionNotSupported = 1;
|
initVersionNotSupported = 1;
|
||||||
initServerFull = 2;
|
initServerFull = 2;
|
||||||
initAuthFailure = 3;
|
initAuthFailure = 3;
|
||||||
|
|||||||
@@ -3859,7 +3859,7 @@ void gameTableImpl::triggerVoteOnKick(int id)
|
|||||||
int playerCount = static_cast<int>(seatList->size());
|
int playerCount = static_cast<int>(seatList->size());
|
||||||
if (id < playerCount) {
|
if (id < playerCount) {
|
||||||
PlayerListIterator pos = seatList->begin();
|
PlayerListIterator pos = seatList->begin();
|
||||||
advance(pos, id);
|
std::advance(pos, id);
|
||||||
myStartWindow->getSession()->startVoteKickPlayer((*pos)->getMyUniqueID());
|
myStartWindow->getSession()->startVoteKickPlayer((*pos)->getMyUniqueID());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -993,8 +993,11 @@ ClientThread::CreateContextSession()
|
|||||||
newSock.reset(new boost::asio::ip::tcp::socket(*m_ioService, tcp::v6()));
|
newSock.reset(new boost::asio::ip::tcp::socket(*m_ioService, tcp::v6()));
|
||||||
else
|
else
|
||||||
newSock.reset(new boost::asio::ip::tcp::socket(*m_ioService, tcp::v4()));
|
newSock.reset(new boost::asio::ip::tcp::socket(*m_ioService, tcp::v4()));
|
||||||
boost::asio::socket_base::non_blocking_io command(true);
|
|
||||||
newSock->io_control(command);
|
// Deprecated non_blocking_io command
|
||||||
|
/*boost::asio::socket_base::non_blocking_io command(true);
|
||||||
|
newSock->io_control(command);*/
|
||||||
|
newSock->non_blocking(true);
|
||||||
newSock->set_option(tcp::no_delay(true));
|
newSock->set_option(tcp::no_delay(true));
|
||||||
newSock->set_option(boost::asio::socket_base::keep_alive(true));
|
newSock->set_option(boost::asio::socket_base::keep_alive(true));
|
||||||
|
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ NetPacket::GameErrorToNetError(int gameErrorReason)
|
|||||||
retVal = ErrorMessage::sessionTimeout;
|
retVal = ErrorMessage::sessionTimeout;
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
retVal = ErrorMessage::reserved;
|
retVal = ErrorMessage::custReserved;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return retVal;
|
return retVal;
|
||||||
|
|||||||
@@ -122,8 +122,10 @@ protected:
|
|||||||
const boost::system::error_code &error)
|
const boost::system::error_code &error)
|
||||||
{
|
{
|
||||||
if (!error) {
|
if (!error) {
|
||||||
boost::asio::socket_base::non_blocking_io command(true);
|
// Deprecated non_blocking_io command
|
||||||
acceptedSocket->io_control(command);
|
/*boost::asio::socket_base::non_blocking_io command(true);
|
||||||
|
newSock->io_control(command);*/
|
||||||
|
newSock->non_blocking(true);
|
||||||
acceptedSocket->set_option(typename P::no_delay(true));
|
acceptedSocket->set_option(typename P::no_delay(true));
|
||||||
acceptedSocket->set_option(boost::asio::socket_base::keep_alive(true));
|
acceptedSocket->set_option(boost::asio::socket_base::keep_alive(true));
|
||||||
boost::shared_ptr<SessionData> sessionData(new SessionData(acceptedSocket, m_lobbyThread->GetNextSessionId(), m_lobbyThread->GetSessionDataCallback(), *m_ioService));
|
boost::shared_ptr<SessionData> sessionData(new SessionData(acceptedSocket, m_lobbyThread->GetNextSessionId(), m_lobbyThread->GetSessionDataCallback(), *m_ioService));
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ int main( int argc, char **argv )
|
|||||||
|
|
||||||
/////// can be removed for non-qt-guis ////////////
|
/////// can be removed for non-qt-guis ////////////
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
a.setApplicationName("PokerTH");
|
a.setApplicationName("PokerTH");
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user