Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Programming & Scripting
Reload this Page HELP!! sockets...
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Programming & Scripting C, Perl, PHP, Bash Scripts, anything programming or script related post in here!

Reply
 
Thread Tools Display Modes
Old 04-27-2008   #1 (permalink)
longer_tcz
Just Joined!
 
Join Date: Apr 2008
Posts: 3
HELP!! sockets...

how costruction protocol use: raw socket and MAC address ?
longer_tcz is offline   Reply With Quote
Old 04-27-2008   #2 (permalink)
wje_lf
Linux Engineer
 
wje_lf's Avatar
 
Join Date: Sep 2007
Location: Mariposa
Posts: 874
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.
wje_lf is offline   Reply With Quote
Old 04-27-2008   #3 (permalink)
longer_tcz
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)
longer_tcz is offline   Reply With Quote
Old 04-27-2008   #4 (permalink)
wje_lf
Linux Engineer
 
wje_lf's Avatar
 
Join Date: Sep 2007
Location: Mariposa
Posts: 874
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.
wje_lf is offline   Reply With Quote
Old 05-14-2008   #5 (permalink)
longer_tcz
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?
longer_tcz is offline   Reply With Quote
Old 05-14-2008   #6 (permalink)
wje_lf
Linux Engineer
 
wje_lf's Avatar
 
Join Date: Sep 2007
Location: Mariposa
Posts: 874
Quote:
I found function sendfile() but I don`t know how use that.
Here's the man page.
Quote:
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.
wje_lf is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 06:33 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0