annotate toynet.h @ 304:93223118c813

Option parsing: stopearly is now a ^ prefix (not +), and an option string with no flags auto-enables stopearly (so seq doesn't have to specify it to avoid having negative number arguments eaten by the option parsing logic).
author Rob Landley <rob@landley.net>
date Thu, 26 Jun 2008 22:48:43 -0500
parents e864c5ed1d25
children 4dcd5decb4fd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
190
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
1 // Included after toys.h, for network stuff. Some build environments
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
2 // don't include network support, so we shouldn't include it unless we're
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
3 // going to build it.
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
4
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
5 #include <sys/socket.h>
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
6 #include <netinet/in.h>
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
7 #include <arpa/inet.h>
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
8 #include <netdb.h>
e864c5ed1d25 Netcat needs this to build.
Rob Landley <rob@landley.net>
parents:
diff changeset
9 #include <poll.h>