/*----- General utilities -------------------------------------------------*/
+/* Answer whether the sockets SA and SB are equal. */
int sockeq(const struct addrops *ao,
const struct socket *sa, const struct socket *sb)
{ return (ao->addreq(&sa->addr, &sb->addr) && sa->port == sb->port); }
+/* Write a textual description of S to the string D. */
void dputsock(dstr *d, const struct addrops *ao, const struct socket *s)
{
char buf[ADDRLEN];