![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|