From: hukku@netcom.com (Rajiv Hukku)
Subject: X25 PVC with threads on DIGITAL UNIX 3.0
Date: 1996/01/30 [thread overview]
Message-ID: <hukkuDM064x.LK1@netcom.com> (raw)
Subject: X25 PVC with threads on DIGITAL UNIX 3.0
Newsgroups: comp.unix.osf.osf1
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
Summary:
Keywords:
Hi,
I have come across a problem using DEC's X25 layered product on
DIGITAL UNIX 3.0 running on an alpha based DEC 3000 model 600s
The call X25OpenPVC fails to return while linking with the threaded
version of the library. When the same code is linked with the
normal (un-threaded) version the code works fine.
Is this a known problem ? Any help would be most welcome.
regards
Rajiv
Note : Below is a extract from the program which is currently working
under normal process environment and not working in the threaded environment.
/*****************
*/
#define MAIN
#include <stdio.h>
#include <string.h>
#include <netx25/x25.h>
#include <errno.h>
#include <setjmp.h>
#include <pthread.h>
main()
{
int result,cid;
if((result = X25OpenPort()) < 0)
{
char errorText[50];
strcpy(errorText, "** Could not open port");
X25PrintError(result, errorText);
exit(0);
}
cid = result;
if((result = X25OpenPVC(cid,0,NULL,0,"simpact-pvc")) < 0)
{
char errorText[50];
strcpy(errorText, "** Could not open PVC");
X25PrintError(result, errorText);
exit(0);
}
while(1)
{
sleep(1);
}
}
next reply other threads:[~1996-01-30 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-01-30 5:00 Rajiv Hukku [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-02-01 5:00 X25 PVC with threads on DIGITAL UNIX 3.0 Rajiv Hukku
1996-01-30 5:00 Rajiv Hukku
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox