socket interface to a new protocol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am developing a n/w protocol (its connection-oriented, reliable,
message-boundary preserving) over ethernet. I want to provide a 
socket() interface for user-space programs. So somebody can send/recv
pkts using familiar socket interface:

---
int sock;
sock = socket(MY_FAMILY, MY_TYPE, MY_PROTOCOL);
connect(sock, dest, xyz);
send(sock, msg, len, flags);
recv(sock, buf, len, flags);
close(sock);
---

Any pointers/suggestions welcome.

Thanks in advance,
Abhi.


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux