server & client test
This commit is contained in:
parent
5f5e7096ab
commit
01da14b2c1
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ int server_init(Server* srv, unsigned short Port, unsigned int dwMaxConnections)
|
|||
srv->_OnWrite=0;
|
||||
|
||||
// Allocate needed Memory
|
||||
srv->sConnections=(SOCKET*)kmalloc(sizeof(SOCKET)*srv->dwConnections);
|
||||
srv->sConnections=(SOCKET*)kmalloc(sizeof(SOCKET)*dwMaxConnections);
|
||||
srv->ConnectionsAddr =(struct sockaddr_in*) kmalloc(sizeof(struct sockaddr_in)*dwMaxConnections);
|
||||
srv->bThreads = (tid_t*)kmalloc(sizeof(tid_t)*dwMaxConnections);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue