streamwrite.c (1639) | streamwrite.c (8875) |
---|---|
1.\" Copyright (c) 1986, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 29 unchanged lines hidden (view full) --- 38#include <stdio.h> 39 40#define DATA "Half a league, half a league . . ." 41 42/* 43 * This program creates a socket and initiates a connection with the socket 44 * given in the command line. One message is sent over the connection and 45 * then the socket is closed, ending the connection. The form of the command | 1.\" Copyright (c) 1986, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 29 unchanged lines hidden (view full) --- 38#include <stdio.h> 39 40#define DATA "Half a league, half a league . . ." 41 42/* 43 * This program creates a socket and initiates a connection with the socket 44 * given in the command line. One message is sent over the connection and 45 * then the socket is closed, ending the connection. The form of the command |
46 * line is streamwrite hostname portnumber | 46 * line is streamwrite hostname portnumber |
47 */ 48 49main(argc, argv) 50 int argc; 51 char *argv[]; 52{ 53 int sock; 54 struct sockaddr_in server; --- 27 unchanged lines hidden --- | 47 */ 48 49main(argc, argv) 50 int argc; 51 char *argv[]; 52{ 53 int sock; 54 struct sockaddr_in server; --- 27 unchanged lines hidden --- |