Hello ,
I am writing a application to Generate mixed traffic of TCP UDP Protocol. I have written socket program which generate TCP and UDP Stream with input Parameters supplied like Packet Size,...
Type: Posts; User: SimplySud
Hello ,
I am writing a application to Generate mixed traffic of TCP UDP Protocol. I have written socket program which generate TCP and UDP Stream with input Parameters supplied like Packet Size,...
Server Side Code
sockfd = socket(AF_INET, SOCK_STREAM, 0);
bind(sockfd, (struct sockaddr *) &serv_addr,sizeof(serv_addr)) < 0)
listen(sockfd,5);
newsockfd = accept(sockfd, (struct...
I have Build code for sending/receiving TCP Traffic over c Socket .
Now I want t add HTTP Protocol to it .
After searching out on google ,one method I found which is by GET method to send a query...
Following is the receving Fuction declartion but gives segmentation error
void get_parameter_value(int argc,char *argv[])
Hello ,
I am writing a program in which a Fucntion has to be wriiten to parse the Command Line .
When I include Code for parsing in main fuction iteslf ,its run ok .
But I want to make a...
sockfd = socket(AF_INET, SOCK_STREAM, 0);
n = write(sockfd,buffer,packet_size);
I used this socket to send traffic .Is there any problem with using same socket for another communication ,What...
sudhakar@sudhakar-Aspire-E1-570:~/Desktop$ ./Receiver -m 0 -p 5000 -z 256 -P t
*** Error in `./Receiver': munmap_chunk(): invalid pointer: 0x00007fff7725f2a0 ***
Aborted (core dumped)
Error is...
Please Varify my Method .
I am not getting expected output ..
int Amount=500;
send(newSocket,Amount,4,0);
close(welcomeSocket);
I tried by following modification in code .but instead of giving delay ,its giving total Loop run time which is not expected
while(n>0)
{
n = read(newsockfd,buffer,packet_size);
...
I want to calculate the total some of delay pf receiving Side Packet .
Code is as Follow ..
What is weired that even if i invoke a sleep of 2 sec ,than its show delay alwts zero. Delay will be in...
Dear ,Better to post some efforts you made ..We can Discuss Logic Development intead Code for you
Are you trying to Say that ..Increased Data is due to Packet Overhead ....
which happen due to fragmentation of data ...
Questions :
I am running a client Server Program whose Sender and Receiver loop is given below .I have multi threaded Sender using OMP .As per My logic Receive should receive same amount of data...
I wanted to share the value of a variable from Sender Program to Receive after program and want to calculate difference between send and receive.
After studying Header file concept I program...