Search:

Type: Posts; User: akira87

Search: Search took 0.01 seconds.

  1. Replies
    25
    Views
    22,547

    Thanks alot. This really helps me in...

    Thanks alot. This really helps me in understanding the usage of sockets.
  2. Replies
    25
    Views
    22,547

    thanks. I will give it a try. btw, what do mean...

    thanks. I will give it a try. btw, what do mean by man pages?
  3. Replies
    25
    Views
    22,547

    Thanks for the advice. I managed to run the...

    Thanks for the advice. I managed to run the codes. With regards to bind(), what's the purpose when we bind the broadcast ip to a port? And if I want to make the server to be capable of receiving...
  4. Replies
    25
    Views
    22,547

    The following is the code for the server: ...

    The following is the code for the server:


    #include <stdio.h>
    #include <stdlib.h>
    #include <unistd.h>
    #include <errno.h>
    #include <string.h>
    #include <sys/types.h>
    #include <sys/socket.h>
  5. Replies
    25
    Views
    22,547

    192.160.100.20:15600 Is the underlined number...

    192.160.100.20:15600

    Is the underlined number the port number? So meaning we just sent it to 192.160.100.255. This will be our broadcasting msg? We do not need to set the setting of socket using...
  6. Replies
    25
    Views
    22,547

    recv_numbytes = recvfrom(recvfd, &instruction,...

    recv_numbytes = recvfrom(recvfd, &instruction, sizeof(instruction), 0, (struct sockaddr*)&ocu_addr, &recv_len);
    printf("recv = %d\n", recv_numbytes);
    //printf("sizeof pw = %d\n",...
  7. Replies
    25
    Views
    22,547

    Thanks guys... I managed to find the root of my...

    Thanks guys... I managed to find the root of my program. But now I faced a segmentation fault upon running the codes. Do you have any reasons why it may cause this?
  8. Replies
    25
    Views
    22,547

    Thanks for the link. Is the link you provide...

    Thanks for the link. Is the link you provide suitable for linux OS? I met one problem while trying to run my program. My program is broadcasting data out to all the clients at the same so i would...
  9. Replies
    25
    Views
    22,547

    So meaning that if I happened to receive two...

    So meaning that if I happened to receive two clients trying to send me the data i will only manage to receive one?
  10. Replies
    25
    Views
    22,547

    yes. Thanks a lot. It helps me clear my doubts...

    yes. Thanks a lot. It helps me clear my doubts and can better plan my program. By the way, is it possible to use select() for UDP packets? From my understanding, I believe that we must register the...
  11. Replies
    25
    Views
    22,547

    Difference between multicast and broadcast

    May I know what's the difference between broadcast and multicast? I tried reading from the internet but I find it too technical and hard to understand. In addtition, if I am trying to broadcast data...
  12. Replies
    7
    Views
    1,698

    I managed to get the two network running. I...

    I managed to get the two network running. I finally understand what u meant about wired and wireless is the same. Thanks.
  13. Replies
    7
    Views
    1,698

    tentatively I am trying to pass data like simple...

    tentatively I am trying to pass data like simple strings or struct to test the effectiveness. However, eventually I may need to send video over the connection. So now, I was just trying to set up the...
  14. Replies
    7
    Views
    1,698

    Basically I am trying to write the codes for the...

    Basically I am trying to write the codes for the server side that will be able to broadcast its IP address on a wireless network (most probably LAN), Then it must be able to multicast out to the...
  15. Replies
    7
    Views
    1,698

    Then how can I determine the IP address to send...

    Then how can I determine the IP address to send to (for client) and the IP address of the server? The wireless IP address or is it the one for the computer?
  16. Replies
    7
    Views
    1,698

    Questions on wireless networking

    Hi, I am trying to write to write a wireless network in C. However, I am not sure how to initiate the wireless device to broadcast its IP and to multicast data out. Are there any books or website...
Results 1 to 16 of 17