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...
Type: Posts; User: anya
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...
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 ...
I figured out, deleting int return_array[3]; from the printSum function solved the problem.
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...
I changed 1. and 2. and it works now, thanks ! :)
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:
...
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...
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...
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...
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 ...
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...
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...
Hi, I solved the problem by increasing the buffer size to 518 bytes in #define BUF_SIZE 518 .... Thank you
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...
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
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...