Search:

Type: Posts; User: SimplySud

Search: Search took 0.00 seconds.

  1. Connection Refused when trying to Connect TCP UDP connection Simultaneoulsy

    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,...
  2. Server Side Code sockfd = socket(AF_INET,...

    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...
  3. HTTP Packet Genration and Send/Reciev Via C Socket

    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...
  4. Following is the receving Fuction declartion but...

    Following is the receving Fuction declartion but gives segmentation error


    void get_parameter_value(int argc,char *argv[])
  5. How to Pass Main Fuction argument to some Other Function

    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...
  6. Replies
    5
    Views
    28,003

    sockfd = socket(AF_INET, SOCK_STREAM, 0); n =...

    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...
  7. Replies
    5
    Views
    28,003

    sudhakar@sudhakar-Aspire-E1-570:~/Desktop$...

    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...
  8. Replies
    5
    Views
    28,003

    Sending Integer Via C Socket

    Please Varify my Method .
    I am not getting expected output ..




    int Amount=500;
    send(newSocket,Amount,4,0);
    close(welcomeSocket);
  9. Replies
    2
    Views
    1,532

    I tried by following modification in code .but...

    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);
    ...
  10. Replies
    2
    Views
    1,532

    Delay Calculatin of Packet Sending Loop

    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...
  11. Replies
    5
    Views
    1,057

    Dear ,Better to post some efforts you made ..We...

    Dear ,Better to post some efforts you made ..We can Discuss Logic Development intead Code for you
  12. Are you trying to Say that ..Increased Data is...

    Are you trying to Say that ..Increased Data is due to Packet Overhead ....
    which happen due to fragmentation of data ...
  13. More Packet is Received Than Threaded Sender Sent

    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...
  14. How to Share Variable Value from one source file to other isuing Header File

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