From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <428A1932.9070503@asgaard.homelinux.org> Date: Tue, 17 May 2005 18:17:54 +0200 From: =?ISO-8859-1?Q?=22Nils_O=2E_Sel=E5sdal=22?= User-Agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] Question on dial() References: <10520507828.20050517155314@mail.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 4cfd4ca4-ead0-11e9-9d60-3106f5b1d025 I RATTAN wrote: > > On Tue, 17 May 2005, Russ Cox wrote: > > >>What does your program look like? > > > Here is the client code.. > -ishwar > ----- > #include > #include > > void > main(void) > { > char ibuf[128], obuf[33]="98765432109876543210987654321098"; > > int fd, i, len; > > > if((fd = dial("tcp!tigaon!7", 0, 0, 0)) < 0) > sysfatal("dial"); If you do sysfatal("dial %r"); it should print errstr as well, so you'll get some more info when it fails.