✞ Godlike ✞
- Joined
- Jul 18, 2008
- Messages
- 465
- Reaction score
- 61
void CUDPDriver::StopThread_Listen()
{
// Signal the shutdown
m_hEvent_Thread_Shutdown.Set();
if( INVALID_SOCKET != m_LocalConn )
{
sockaddr_in SendTo;
memset( &SendTo, 0, sizeof(sockaddr_in) );
SendTo.sin_family = AF_INET;
SendTo.sin_port = htons( m_nLocalPort );
SendTo.sin_addr.s_addr = inet_addr( "[B]127.0.0.1-REPLACE WITH YOUR OWN SERVER IP ADDRESS.[/B]" );
uint32 nTerm = UNCONNECTED_DATA_TERM;
char szBuf[16];
memcpy( szBuf, &nTerm, sizeof(uint32) );
sendto( m_LocalConn, szBuf, sizeof(uint32), 0, (sockaddr*)&SendTo, sizeof(sockaddr_in) );
}
// Wait for it to shut down
WaitForSingleObject(m_hThread, INFINITE);
// Clean up
CloseHandle(m_hThread);
m_hThread = 0;
m_Socket = INVALID_SOCKET;
m_hEvent_Thread_Shutdown.Clear();
}
need to create database tables in the opinion shopping or associated with one of the existing tables, I think so.
@sdfsdf omg... totally wrong
there are some other tables you have to add byyourself because they are missing... but a pro like you should know thembtw.
ClientGate.cpp function is wrong failit will only open up when a thread stops hearing, so wenn a connection will get cut.
@Sjogernx
You want to know the Shop,clan,inventar,p2p error? ....
Clan - Screenclan is missing and the whole stuff is not handled, but pretty easy to make it
Shop - Price,Duration, etc. aren't handled.
Inventory - All Weapons inside the inventory are read from the weapons.txt ...
Buddy - not handled.
And not to forget:
"Haha oh well! Just shop, buddy and clan left for me before I open my server for beta...."
You forgot the p2p Problemthe biggest problem the other thing is done easily ...
You don't get it huh? P2p is not working, only for lan... But don't believe me idc... Omg if you get a bunch of errors by removing a function you should better go e up your great ob test... Weapon positions are right... If you are using the new sa models which are larger then the old its your fault not the fault of the source and I don't have this exit bug maybe you should better learn some cpp first as "gameadmin"
"And the peer to peer works great" Says all Please get some knowledge about computer basics