I think I didn't add "USE_IRRLICHT". Have to try that

polylux wrote:Good evening!
I got a pretty strange runtime error with irrnetlite. That occurs when at the end of the scope the SOutPacket is automatically deallocated. More specifically, i get pointed to the destructor of core::array, which is one of its members - haven't yet figured out why it segfaults.
Has anyone had the same issue before? I am using irrlicht 1.6 and the (latest?) irrnetlite version - as offered in the very first post of this thread.
Thanks for any suggestions & cheers,
p.
polylux wrote:Good evening!
I got a pretty strange runtime error with irrnetlite. That occurs when at the end of the scope the SOutPacket is automatically deallocated. More specifically, i get pointed to the destructor of core::array, which is one of its members - haven't yet figured out why it segfaults.
Has anyone had the same issue before? I am using irrlicht 1.6 and the (latest?) irrnetlite version - as offered in the very first post of this thread.
Thanks for any suggestions & cheers,
p.
polylux wrote:I built a static library with the included makefile. Plus I just found out that it behaves weird, like randomly sent/received data. Gotta have a look at that...
Brainsaw wrote:is there a way to get the IP address of the server using irrnetlite or enet functions?
char hostip[16];
enet_address_get_host_ip(&serverAddress, hostip, 16);
printf("%s\n", hostip);
void Message::addUnsignedInt(const unsigned int ui)
{
const size_t tokenSize = sizeof(unsigned int);
if (dynamicResize(tokenSize) < 0)
return;
unsigned int* const ui_ptr = (unsigned int* const)(&this->packet->data[this->read_write_head]);
*ui_ptr = ENET_HOST_TO_NET_32(ui);
this->read_write_head += tokenSize;
}
Brainsaw wrote:I still got "0.0.0.0" as IP address of the server.
Return to Project Announcements
Users browsing this forum: No registered users and 1 guest