Search:

Type: Posts; User: tmcp

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    3,361

    sendto() returns wrong bytes sent

    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...
  2. Replies
    0
    Views
    2,162

    two threads, two fgets(), one problem!

    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...
  3. Replies
    2
    Views
    967

    thanks you for your sugestion, but I find another...

    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
  4. Replies
    2
    Views
    967

    Referencing in threads

    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...
  5. Replies
    12
    Views
    11,503

    Problem solved...Its runnig all ok. Thanks for...

    Problem solved...Its runnig all ok. Thanks for your help :D
  6. Replies
    12
    Views
    11,503

    Thanks you for the hints. Thats what I am going...

    Thanks you for the hints. Thats what I am going to do...I will post my results later
  7. Replies
    12
    Views
    11,503

    Thanks for the answer. Dont know that about...

    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...
  8. Replies
    12
    Views
    11,503

    Thanks, I will probably have to use O_NONBLOCK...

    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
  9. Replies
    12
    Views
    11,503

    I guess i am having some troubles with error...

    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...
  10. Replies
    12
    Views
    11,503

    Thank you. I will read it carefully. SOCK_NONSOCK...

    Thank you. I will read it carefully. SOCK_NONSOCK is a flag mentioned in socket(2) man page
  11. Replies
    12
    Views
    11,503

    hi again, i am doing a non-blocking server...So I...

    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 ...
  12. Replies
    12
    Views
    11,503

    EAGAIN undeclared...

    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
  13. Replies
    0
    Views
    978

    Threads Design question

    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...
  14. Thread: Signals, Threads

    by tmcp
    Replies
    0
    Views
    736

    Signals, Threads

    Closed
  15. Replies
    1
    Views
    918

    Passing by reference in threads

    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?
    ...
  16. Replies
    4
    Views
    1,778

    yep, I have read something about that, can you...

    yep, I have read something about that, can you give me some links about polling

    thanks
  17. Replies
    4
    Views
    1,778

    Multi-client/Server design

    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...
Results 1 to 17 of 17