Hi everybody, the problem is basically what's on the title. sendto() always return 0 but in the other side the complete message is completely received... its a communication between two servers so...
Type: Posts; User: tmcp
Hi everybody, the problem is basically what's on the title. sendto() always return 0 but in the other side the complete message is completely received... its a communication between two servers so...
Hi there everyone, here is the problem. I have been thinking and I dont figure out how to solve this.
I have 2 threads running simultaneous and the both can ask for a string from the user. The...
thanks you for your sugestion, but I find another way to do it. passing just one int throw in the thread...You just have to make it insidethe thread function
*(int*) merdé
thank you again
Hiya everyone, i am kind of having some troubles in getting this to work:
pthread_create(&thread, NULL, DoWork, &(((struct Update*) updateStruct)->name));
Why this doesnt work? I change the...
Problem solved...Its runnig all ok. Thanks for your help :D
Thanks you for the hints. Thats what I am going to do...I will post my results later
Thanks for the answer. Dont know that about fprintf :D! Yep, its that I am trying to do. So I guess I am doing it wrong because accept will block my other threads that are running simultaneous. As I...
Thanks, I will probably have to use O_NONBLOCK and set it with fcntl....
Flags are for
accept4(). A non.standard Linux system call. Linux 2.6.28. Glibc 2.10
I guess i am having some troubles with error messages. In accept(2) man pages it says that SOCK_NONBLOCK flag will save extra calls to fcntl. So far so good... I set that up and now I simple dont...
Thank you. I will read it carefully. SOCK_NONSOCK is a flag mentioned in socket(2) man page
hi again, i am doing a non-blocking server...So I put the
accept inside a
for and each time
accept>0 it creates a new thread, passing in it the socket descriptor of accepted client.
I set ...
Hi there, I guessing that I probably dont have some library so gcc gives this error:
erro: 'EAGAIN' undeclared (first use in this function)
Can you tell what am I doing wrong?
Thanks in advance
Hi there, I have a multi thread server so I can deal with the clients. But this is my problem. I am always receiving info coming from clients. and from X to X time I have to do a send(X) according to...
Closed
Hiya everyone, i have been looking on google how to pass by reference an struct or any thing else, doesnt matter...I came finding that there is not so much information.
Can you give an hint?
...
yep, I have read something about that, can you give me some links about polling
thanks
Hi everyone, i developing a kind of "limited chat room" whereas my machine is the server and in my network pair of clients join to chat. kind of stupid.... But what I want to know is your opinion on...