this is the code:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define FD_SET_SIZE 11
typedef struct
{
Type: Posts; User: Massive
this is the code:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define FD_SET_SIZE 11
typedef struct
{
i tried also in this way ubt the result is always the same...and i don't know how...
by me the problem is that there is a struct inside a struct and (i don't know for which problem) there is some...
but in this way i lost also char *table_name and i don't want to lost this information.... i want only to free data of id_client not of all struct TABLE......
but i want to free id_client...
what i have to do ???
so in this way the code is right???
free(db_list[0].db_table[0].id_client);
free(db_list[0].db_table[0].table_name);
free(db_list[0].db_name);
thx anyway.... :)
hi i have a problem when i use free with a structure inside a structure ...this is the code...
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct
{
char...
> Besides, do you have any real reasons not to use LinuxThreads, i.e. do they miss something you need?
i don't think but if NPTL is more efficient why don't use it? especially if my application...
attention!
nptl it's different to ngpt
http://people.redhat.com/drepper/nptl-design.pdf
take a look!
:)
P.S. see the benchmark at the last pages...
and what about NPTL (native posix thread library) ??
it's a newer library, its'right??
thank u.
thank u for the information, i saw that LinuxThreads are built in but i'm not sure :)
hi, i'm developing an application that use threads. i read that there are user-space and kernel-space threads.
i want to use kernel space threads....
i read that linux supports...
i know but i don't know where are these functions....
thank u however :)
i resolved the problem with COFF2OMF borland tool ......the compile goes all ok.
now i have to understand how to use tihs libraries :)
i execute the program compiled above but it doesn't create...
i tried but there is already the same problem.......
of course u are right....
i'm a little bit stupid :rolleyes:
but if i compile with option
-L library there is another error :confused:
D:\uni\Progettone\XML>bcc32 -L "c:\Program...
but i already put the library in the path ( \include) the problem is that the linker doesn't find the reference....
don't u think??
these is the errors:
Error: Unresolved external '_xmlNewDoc' referenced from D:\UNI\PROGETTONE\XML\TEST.OBJ
Error: Unresolved external '_xmlNewDocNode' referenced from...
this is a simple apllication that it should create an xml file....if i understand api specification....
but with borland 5.5 compiler i have an error with linker...
...
hi, i have downloaded xml library from xmlsoft.org, the library name is libxml2 (for linux, windows) .... i read the doc but it is not very clear .... i don't understand if with this library is...
yes but i would to use non blocking socket and in this way the recv is blocking (or similat to blocking socket).....
ok i understand, but if i'm sending a binary file ?? it's a problem to put a terminator character...
don't think??
in i simple program that use sockets how can i know if the recv() function has received all data ???
better:
if the client send a message but the send not send all data and then the client must...
for ( i = 0 ; i < FD_SETSIZE ; i++ ) if ( FD_ISSET(i,&set) ) { /* do stuff */ }
i can't do this because in windows FD_SETSIZE is 64 and if the firs socket descriptor is 100 it never enter in that...
view this unix system program:
/*
** select.c -- a select() demo
*/
#include <stdio.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
my problem is this:
i want to use the select() function to use non blocking sockets,
when i put a socket(file) descriptor in FD_SET i don't know how to iterate on fd_set to find the ready socket,...