test01.c 235 B

1234567891011121314151617
  1. #include "unpxti.h"
  2. int
  3. main(int argc, char **argv)
  4. {
  5. int tfd;
  6. if (argc != 3)
  7. err_quit("usage: test01 <hostname/IPaddress> <service/port#>");
  8. tfd = Tcp_connect(argv[1], argv[2]);
  9. t_snd(tfd, "", 1, T_EXPEDITED);
  10. exit(0);
  11. }