Find the answer to your Linux question:
Results 1 to 6 of 6
how costruction protocol use: raw socket and MAC address ?...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    3

    HELP!! sockets...

    how costruction protocol use: raw socket and MAC address ?

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    You want to build your own protocol based on raw sockets and MAC addresses?

    People don't ordinarily do that sort of thing. You're not likely to find too much help on this or any other Linux forum site.

    All I can suggest is that you first have a thorough understanding of the regular Internet Protocol (IP).

    You would do well to run (not walk) to your nearset bookseller and order the book published by Addison-Wesley entitled UNIX Network Programming, volume 1, by W. Richard Stevens of happy memory.

    W. Richard Stevens has written other excellent books about network programming, published by Addison-Wesley, but I'd start there.

    Good luck!
    --
    Bill

    Old age and treachery will overcome youth and skill.

  3. #3
    Just Joined!
    Join Date
    Apr 2008
    Posts
    3
    I have read that book, and I haven`t found anything useful.
    I`m not sure if solution on the site

    In Internet I havent found info about building protocol..


    communicator is protocol too (maybe, i dont sure)

  4. #4
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    If you study the IP (Internet Protocol) thoroughly, inside and out, you'll be able to figure out how to build your own protocol.

    To do that, look at these Addison-Wesley books:

    TCP/IP Illustrated, volume 1, by W. Richard Stevens
    TCP/IP Illustrated, volume 2, by Gary R. Wright and W. Richard Stevens
    --
    Bill

    Old age and treachery will overcome youth and skill.

  5. #5
    Just Joined!
    Join Date
    Apr 2008
    Posts
    3
    OK I have program which sending message from computer A to computer B.
    But now I am looking for information about transfer files between computers using raw socket. How can I do that?
    I found function sendfile() but I don`t know how use that.
    I need example .

    How build server FTP on linux, in C language?

  6. #6
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    I found function sendfile() but I don`t know how use that.
    Here's the man page.
    How build server FTP on linux, in C language?
    The best way to learn this is to study the C source code of some examples.

    Hope this helps.
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...