socket interface to a new protocol

From: devnetfs (devnetfs@yahoo.com)
Date: Thu Nov 21 2002 - 11:42:20 EST


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 - To unsubscribe from this list: 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



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:00 EST