|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
![]() |
|
|
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 |
| Sponsored Links |
|
|
|
|||
|
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 |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Socket programming | maracumbigo | Programming | 4 | 02-11-2008 02:34 AM |
| Socket Programming | arunviswanath | 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 | Programming | 2 | 06-29-2004 08:49 AM |
| Socket Programming | joseph_shibu | Programming | 1 | 11-05-2001 10:37 AM |