Start work on network client
This commit is contained in:
parent
2625807c1a
commit
dff667751b
3 changed files with 147 additions and 73 deletions
|
|
@ -23,18 +23,18 @@
|
|||
#else
|
||||
#include <unistd.h>
|
||||
|
||||
typedef struct listen_thread_param_type
|
||||
{
|
||||
NetworkServer * this_ptr;
|
||||
SOCKET * sock_ptr;
|
||||
};
|
||||
|
||||
static void Sleep(unsigned int milliseconds)
|
||||
{
|
||||
usleep(1000 * milliseconds);
|
||||
}
|
||||
#endif
|
||||
|
||||
typedef struct listen_thread_param_type
|
||||
{
|
||||
NetworkServer * this_ptr;
|
||||
SOCKET * sock_ptr;
|
||||
};
|
||||
|
||||
THREAD connection_thread(void *param)
|
||||
{
|
||||
NetworkServer* server = static_cast<NetworkServer*>(param);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue