The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Socket programming maracumbigo High Level Programming 4 02-11-2008 02:34 AM
Socket Programming arunviswanath High Level Programming 7 01-30-2007 03:18 PM
socket programming damn_bkb IP Networking 6 11-19-2006 02:10 AM
Socket Programming socket soshell High Level Programming 2 06-29-2004 07:49 AM
Socket Programming joseph_shibu High Level Programming 1 11-05-2001 10:37 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-17-2002
SpY974 SpY974 is offline
Registered User
  
 

Join Date: Feb 2002
Location: France
Posts: 2
Question advanced socket programming

hi every one
my post is about socket programming
i would know if anyone knows about send binary file in peer to peer connection.
if you have any information about it plzzz contact me or reply my post
thx
SpY974
  #2 (permalink)  
Old 02-18-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
You're asking for quite a bit here. As a starting point I would suggest reading a book. I like UNIX Network Programming by Rich Stevens.
  #3 (permalink)  
Old 02-25-2002
AtleRamsli AtleRamsli is offline
Registered User
  
 

Join Date: Feb 2002
Location: Brabant, Belgium
Posts: 65
In principle, all communication is 'binary'
That said, you have some options when creating a socket:

These are some protocols from a Linux book:
AF_UNIX (Is my book old, has this one gotten a new name?)
AF_INET - the one you probably want :-)
AF_ISO - Some new stuff ...
AF_NS - Xerox

Then, some socket types:

SOCK_STREAM - probably most used, connection based
SOCK_DGRAM - very intersting, can be fast on LAN
SOCK_RAW - Maybe this is the one you want?
If you build a new protocol, you may use this?

In principle, sockets are used like files:

open, read/write, close.

So, to transfer a file, you would open and write in one end, and open, read and close in the other ... but you probably have something particular in mind ...??

This is a GROSS oversimplification, does not speak about bind(), listen(), accept(), etc. - but check socket(3SOCKET), it will contain links to the other relevant calls.

Atle
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

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




All times are GMT -4. The time now is 01:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0