the sockets api is the same for linux and bsd at the user level. netlink is linux only, netgraph is bsd only. the raw sockets api is different, linux has LSF(linux socket filter) and packet sockets, bsd has BPF(berkely packet filter). other than that i can't think of anything else. any plain old sockets app, ie socket(), connect(), accept(), and so on will compile fine on both. the select() call is slightly different in regards to the timeout value and whether it gets changed,check out man page for that one.
|