X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=rfc1006%2Frfct.c;h=b1222ec11763abdbaa40249b7274c624259e2654;hb=7826e2c92b1a07182ba5bfb94c304f1fa7d27387;hp=c31bce762ad937a09ed856ba1bf997916a5d06f2;hpb=51c420cc7f3b1c3a362822b353683653791cd8bb;p=yaz-moved-to-github.git diff --git a/rfc1006/rfct.c b/rfc1006/rfct.c index c31bce7..b1222ec 100644 --- a/rfc1006/rfct.c +++ b/rfc1006/rfct.c @@ -4,7 +4,16 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: rfct.c,v $ - * Revision 1.5 1995-05-31 08:29:35 quinn + * Revision 1.8 1995-11-01 13:54:52 quinn + * Minor adjustments + * + * Revision 1.7 1995/06/16 10:46:48 quinn + * *** empty log message *** + * + * Revision 1.6 1995/06/15 07:45:11 quinn + * Moving to v3. + * + * Revision 1.5 1995/05/31 08:29:35 quinn * Nothing significant. * * Revision 1.4 1995/05/18 13:02:07 quinn @@ -75,11 +84,11 @@ /* * Simple implementation of XTI/TP0/RFC1006/Sockets. - * Note: This is neither complete nor robust. It just has to tick us over - * until mr. Furniss finishes his own implementation. + * Note: There is still some work to do in here, but basically it works. * * TODO: Asynchronous mode needs a lot of little adjustments to various - * return values and error codes, etc. + * return values and error codes, etc. Formally, we should probably hold + * this up against the protocol state tables, and see if it's correct. * * Check if addressing info is returned correctly by all calls. */ @@ -105,7 +114,6 @@ #ifdef __linux__ #include #endif -#include /* project memory debugging - delete if you don't have it */ #ifdef TRACE_TRANSPORT #define TRC(x) x @@ -719,6 +727,8 @@ int _t_rcv(int fd, char *buf, unsigned nbytes, int *flags) return got; } +#if 1 + int t_rcv(int fd, char *buf, unsigned nbytes, int *flags) { int res; @@ -736,6 +746,8 @@ int t_rcv(int fd, char *buf, unsigned nbytes, int *flags) return total; } +#endif + int t_close(int fd) { struct rfct_control *cnt = control[fd];