Questions on wireless networking

This is a discussion on Questions on wireless networking within the C Programming forums, part of the General Programming Boards category; Hi, I am trying to write to write a wireless network in C. However, I am not sure how to ...

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    16

    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 that I can use to guide me along? Thanks alot. By the way, I am working in a linux environment.
    Last edited by akira87; 02-05-2011 at 01:30 AM.

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Grab all the tutorials you can find on Sockets programming.

    What you're describing is basically TCP/IP networking.

    Google is your friend... But here's one to get you started.

    Linux Howtos: C/C++ -> Sockets Tutorial

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    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?

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    That depends if it's LAN based or Wan (internet) based...

    In the socket api you should find gethostbyname() which is the most common way of doing it.

    The process is relatively simple...

    1) Load the sockets library
    2) Create a socket on your local machine
    3) Get the address for the machine you want to connect to.
    4) Establish a connection
    5) Use sendto() and recv() (or recvfrom() ) to communicate.

    From there it's just a matter of following whatever protocals are defined for that connection.

    No it's not THAT simple, but that's the general flow of things... The specifics will come from the sockets api and the protocal documentation from the server.

    It might help if you were to tell us specifically what you are trying to do...
    "Create a wireless network" is pretty nebulous...

  5. #5
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    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 selected group of stations. The data transmitted must be in UDP. Most likely I only required the client side to test run the program. Hope that this is clear enough. Thanks.

  6. #6
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Software wise, there is no difference between wireless and hardwired... it's all TCP/IP and sockets... It will require a solid working knowledge of C (or some equally capable language), a knowledge of the sockets protocals and a knowledge of multicasting techniques.

    What you multicast is going to add another layer to the task... Multicasting music or video is a whole different animal than synchronizing clocks or waking up the network...

    So... .... once again... what exactly are you trying to do?

  7. #7
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    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 basic program to run first.

  8. #8
    Registered User
    Join Date
    Feb 2011
    Posts
    16
    I managed to get the two network running. I finally understand what u meant about wired and wireless is the same. Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  2. Networking Questions
    By Dalren in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 07-25-2003, 03:24 PM
  3. Networking wire AND wireless
    By lucy in forum Tech Board
    Replies: 7
    Last Post: 12-15-2002, 10:49 PM
  4. Pair of networking questions
    By Javariel in forum Windows Programming
    Replies: 5
    Last Post: 07-31-2002, 08:26 PM
  5. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 07:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21