Released under the terms of the GNU GPL, see file COPYING for more details.
$Log$
+ Revision 1.1.1.2 2002/04/03 01:44:15 short
+ Implemented connection type "tcp" (GCT_TCP), use <hostname>:<port> as "port"
+
Revision 1.1.1.1 2001/11/25 21:58:58 short
:pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
#include "devices/unixserial.h"
#include "devices/unixirda.h"
#include "devices/tekram.h"
+#include "devices/tcp.h"
#include "device.h"
/*
case GCT_Irda:
device_portfd = irda_open();
break;
+ case GCT_TCP:
+ device_portfd = tcp_opendevice(__file, __with_async);
+ break;
default:
break;
}
case GCT_Irda:
irda_close(device_portfd);
break;
+ case GCT_TCP:
+ tcp_close(device_portfd);
+ break;
default:
break;
}
break;
case GCT_Irda:
break;
+ case GCT_TCP:
+ break;
default:
break;
}
break;
case GCT_Irda:
break;
+ case GCT_TCP:
+ break;
default:
break;
}
case GCT_Irda:
return irda_read(device_portfd, __buf, __nbytes);
break;
+ case GCT_TCP:
+ return tcp_read(device_portfd, __buf, __nbytes);
+ break;
default:
break;
}
case GCT_Irda:
return irda_write(device_portfd, __buf, __n);
break;
+ case GCT_TCP:
+ return tcp_write(device_portfd, __buf, __n);
+ break;
default:
break;
}
case GCT_Irda:
return irda_select(device_portfd, timeout);
break;
+ case GCT_TCP:
+ return tcp_select(device_portfd, timeout);
+ break;
default:
break;
}