🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1337

Need a MINIMAL app for a speaker

#1337
From: Hubert B. Hickman
Date: Thu, 08 Oct 1992 05:00
39 lines
1360 bytes
I am attempting to write a simple program that uses speaker/listener.  This
little program does not need to be a full-scale applcation, but simply 
needs to be able to send some messages to a remote application.

My problem is that the port is never found.  As of now, all of the
code resides in the main.m file.  There is no need for a nib file 
since this little executable has no user interface.

Do I have to do somthing more to have a minimal "speaker"?

Thanks,

Hubert Hickman
hickman@cse.unl.edu
-----
#import <stdlib.h>
#import <appkit/appkit.h>
#import <sys/port.h>

void main(int argc, char *argv[]) {

	
 	port_t	websterPort;
	int scode,tcode,flag;

 	NXApp = [Application new];
	websterPort = NXPortFromName("Webster",NULL);
	if(websterPort == PORT_NULL) 
		{
		NXRunAlertPanel("Error",
			   			"Webster port not found, %s.\n",
						"OK",0,0,NXUserName());
		}
	
[munch rest of code]



---------
Technical Details
Message-ID: <1992Oct8.050012.25265@unlinfo.unl.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!wupost!unlinfo.unl.edu!cse!hickman

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!wupost!unlinfo.unl.edu!cse!hickman
From: hickman@cse.unl.edu (Hubert B. Hickman)
Subject: Need a MINIMAL app for a speaker
Message-ID: <1992Oct8.050012.25265@unlinfo.unl.edu>
Sender: news@unlinfo.unl.edu
Nntp-Posting-Host: cse.unl.edu
Organization: University of Nebraska - Lincoln
Date: Thu, 8 Oct 1992 05:00:12 GMT
Lines: 39