[DiscordArchive] ?what is the different bettween 1119 and 8081? is the 1119 use the TCP
[DiscordArchive] ?what is the different bettween 1119 and 8081? is the 1119 use the TCP
Archived author: MaxtorCoder • Posted: 2021-02-26T14:32:06.303000+00:00
Original source
Please wrap the code in code blocks
Archived author: MaxtorCoder • Posted: 2021-02-26T14:32:12.971000+00:00
Original source
\```cpp
//code
\```
Archived author: JORGIE • Posted: 2021-02-26T14:32:31.235000+00:00
Original source
OK.
Archived author: M'Dic • Posted: 2021-02-26T14:33:20.481000+00:00
Original source
``` it will look like this ```
Archived author: M'Dic • Posted: 2021-02-26T14:33:27.765000+00:00
Original source
makes it easier to read and better formated
Archived author: JORGIE • Posted: 2021-02-26T14:33:28.014000+00:00
Original source
```cpp
void LoginRESTService::Run()
{
soap soapServer(SOAP_C_UTFSTRING, SOAP_C_UTFSTRING);
// check every 3 seconds if world ended
soapServer.accept_timeout = 3;
soapServer.recv_timeout = 5;
soapServer.send_timeout = 5;
if (!soap_valid_socket(soap_bind(&soapServer, _bindIP.c_str(), _port, 100)))
{
TC_LOG_ERROR("server.rest", "Couldn't bind to %s:%d", _bindIP.c_str(), _port);
return;
}
TC_LOG_INFO("server.rest", "Login service bound to http://%s:%d", _bindIP.c_str(), _port);
}
}
```
Archived author: JORGIE • Posted: 2021-02-26T14:34:52.064000+00:00
Original source
in master benetserver, we have lanched a soap server that used the 8081 port
Archived author: JORGIE • Posted: 2021-02-26T14:36:44.870000+00:00
Original source
and we also launched a grpc server that use 1119
Archived author: JORGIE • Posted: 2021-02-26T14:37:33.791000+00:00
Original source
```cpp
// Start the listening port (acceptor) for auth connections
int32 bnport = sConfigMgr->GetIntDefault("BattlenetPort", 1119);
if (bnport < 0 || bnport > 0xFFFF)
{
TC_LOG_ERROR("server.bnetserver", "Specified battle.net port (%d) out of allowed range (1-65535)", bnport);
return 1;
}
if (!sSessionMgr.StartNetwork(*ioContext, bindIp, bnport))
{
TC_LOG_ERROR("server.bnetserver", "Failed to initialize network");
return 1;
}
```
Archived author: JORGIE • Posted: 2021-02-26T14:39:32.447000+00:00
Original source
so, what is the different bettween 1119 and 8081? the 8081 is not worldserver