Project

General

Profile

« Previous | Next » 

Revision c2484981

Added by Hamish Coleman about 16 years ago

  • ID c24849817ee1ee651df00075ad7eb524196dd758

Fix mode autodetection, change default tcp port back to 9600
It turns out that my telnet client doesnt work at all when I default
to port 23. Instead of debugging this problem at the moment, I am setting
the default port back to 9600

View differences:

wconsd.c
BOOL com_autoclose=TRUE;
BOOL com_state=FALSE; // FALSE=closed,TRUE=open
int default_tcpport = 23;
int default_tcpport = 9600;
/* Service status: our current status, and handle on service manager */
SERVICE_STATUS wconsd_status;
......
dprintf(1,"wconsd: Serial Console server\n");
if (argc) {
if (argc>1) {
if (strcmp(argv[1],"-i")==0) {
// request service installation
if (argc!=3) {
......
}
}
printf("wconsd: listen on port %i\n",default_tcpport);
// if we have decided to run as a console app..
if (console_application) {
int r;
printf("wconsd: running in debug mode\n");
printf("wconsd: Console Application Mode\n");
r=wconsd_init(argc,argv,&err);
if (r!=0) {
printf("wconsd: debug: init failed, return code %d [%d]\n",r, err);

Also available in: Unified diff