Search:

Type: Posts; User: anya

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    5,023

    C udp application simulate packet loss

    have udp server-client application written in C. On the client side packet loss is detected using recvfrom function and sequence numbers of packets. How can I now simulate dropped packet's on the...
  2. C linked list passing list as argument to the function

    I'm new with linked lists and I have bug that I can not find. I have single linked list filled with numbers which I send as argument to the function search_tnode. If function found number that I'm ...
  3. Replies
    1
    Views
    877

    I figured out, deleting int return_array[3]; from...

    I figured out, deleting int return_array[3]; from the printSum function solved the problem.
  4. Replies
    1
    Views
    877

    C passing array to function

    Hi all,

    I want to pass array to function, to fill array with new values and then to print the array in the main. But I have problem because it prints me just array of zeros. Maybe the concept is...
  5. Replies
    2
    Views
    1,432

    I changed 1. and 2. and it works now, thanks ! :)

    I changed 1. and 2. and it works now, thanks ! :)
  6. Replies
    2
    Views
    1,432

    Linked list problem adding nodes

    Hi all, I wrote function to add to elements in the list, but when I call printList function it returns me empty list ! I'm new with linked list in C so I need help and advices ...Thx

    Output:
    ...
  7. Delete first element means to delete first column...

    Delete first element means to delete first column from matrix, and delete i-th element means to delete it-h column from the matrix. So what is better in general to map 2d array to linked list or to...
  8. C linked list or hash table for matrix operations and representation

    I have matrix in C with size m x n. Size n isn't known. I want to have operations on matrix such as : delete first element and find i-th element. (where size m woudn't be too big , from 10 to 50...
  9. Replies
    4
    Views
    2,839

    I just want an advice how can I reshape my buffer...

    I just want an advice how can I reshape my buffer adding new elements and making new window . From your answer before I didn't understand which how can I achieve this . I will have a big matrix maybe...
  10. Replies
    4
    Views
    2,839

    Until now I have 2d array filled with zeros and...

    Until now I have 2d array filled with zeros and ones. It is in the form:

    unsigned long ** array; // with malloc


    0 0 1 1 0 0 1 0 0 0 0 ...
  11. Replies
    4
    Views
    2,839

    C buffer management

    Hello,

    I have buffer which is 2d array implemented in C, with fixed size m x n. Buffer is filled with zeros and ones. I also defined window size for example 5 which means that I'm searching for...
  12. Hi, * Sorry it was my mistake in syntax. s =...

    Hi,

    * Sorry it was my mistake in syntax. s = socket(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK, 0); works perfectly !

    * I'm not using TCP because it is more complex and demanding. I need some lighter...
  13. Hi, I solved the problem by increasing the buffer...

    Hi, I solved the problem by increasing the buffer size to 518 bytes in #define BUF_SIZE 518 .... Thank you
  14. Thank you very much for advices. I change the...

    Thank you very much for advices. I change the code on both server and client side.I set the server address with the INADDR_ANY and call bind function, and the same I did on
    the client side where I...
  15. The problem is in sendto function, I got the...

    The problem is in sendto function, I got the error "Address family not supported by protocol" but I didnt manage to find the bug :S
  16. Thank you, you point me in the right direction, I...

    Thank you, you point me in the right direction, I forgot to include <arpa/inet.h> , now it's working. But watching the wireshark packet are not sent throught (to the clietn 192.168.0.101) the network...
  17. Hi cas, ...I'm posting you the whole code. I have...

    Hi cas, ...I'm posting you the whole code. I have compiled this in windows with netbeans and compiler inside netbeans so I dont have option -Wall. If you see some mistake please let me know, I'm...
  18. UDP sockets problem when printing struct sockaddr_in

    Hi guys,

    I'm trying few hours to assign and print IP address but everytime my program crashes ! I read tutorials from Beej and everything seems ok, please help...Port has been printed fine, the...
  19. Replies
    3
    Views
    893

    Well the problem is that I can not use TCP at all...

    Well the problem is that I can not use TCP at all because broadcastin via TCP is not possible and that is excatly what I need, I broadcast stream to clients. Is there any way to control UDP, just...
  20. Replies
    3
    Views
    893

    UDP server/client performance in C

    Hi,

    I want to test the performance of server/client arhitecture that I wrote but I have problems with non-blocking sockets. When I use fcntl I can not run client and server to work at the same...
  21. Replies
    0
    Views
    1,217

    Multicast udp server/client arhitecture

    I'm creating multicast server/client udp application in C in which server is sending data to multicast group of clients, and if data is not received, clients request for retransmission. I thought...
  22. Replies
    18
    Views
    4,203

    Hi laserlight, thank you for...

    Hi laserlight, thank you for the_most_perfect_hash_function_ever :) But my thoughts was how to change hash_function in uthash header , but that is something different from this topic ...Thanks to...
  23. Replies
    18
    Views
    4,203

    I was thinking to use uthash for that , it is...

    I was thinking to use uthash for that , it is well documented I think that fits in this description ....I just must find there how to change hash function because as you said the perfect hash is the...
  24. Replies
    18
    Views
    4,203

    Sorry , hash tables are also confusing for me....

    Sorry , hash tables are also confusing for me. The id's range won't be big,up to 200 ... but I need to use hash tables because at the end it will be application in real time and I need add/find...
  25. Replies
    18
    Views
    4,203

    As I will have always different id's I suposse...

    As I will have always different id's I suposse that I don't need to have linked list because I will not have collissions ? So the better options will be an array of pointers to structures ? What...
Results 1 to 25 of 45
Page 1 of 2 1 2