Commit e7461ae5 authored by Per Cederqvist's avatar Per Cederqvist

Release 0.98.2 of isc.

parent 2d3683e1
......@@ -73,7 +73,7 @@ main(void)
/*
** Enable remote connection attempts at port #20000 and #20001
*/
if (isc_listentcp(mcb, "localhost", "20000") == NULL)
if (isc_listentcp(mcb, "localhost", "test-service") == NULL)
Perror("isc_listentcp-20000");
if (isc_listentcp(mcb, NULL, "20001") == NULL)
......
......@@ -40,8 +40,12 @@ isc_strdup(const char *str);
extern IscMsgQueue *
isc_newqueue(void);
#if 0
extern int
isc_pollqueue(IscMsgQueue *queue);
#else
#define isc_pollqueue(qp) ((qp) != NULL && ((qp)->head != NULL))
#endif
extern void
isc_killqueue(IscMsgQueue *queue);
......
......@@ -485,6 +485,11 @@ isc_flush(IscSession * scb);
extern int
isc_send(IscSession * scb, IscMessage * mcb);
extern int
isc_sendto(IscSession * scb,
IscAddress * ap,
IscMessage * mcb);
/*
......
......@@ -11,6 +11,7 @@
** 910303 ceder clean up. Removed everything that is lyskom-specific.
** 910304 pen really removed everything lyskom-specific.. :-)
** 920129 pen added support for "lazy" connect
** 920805 pen one unneccessary isc_pollqueue() removed.
*/
#include <stdio.h>
......@@ -307,10 +308,9 @@ RETRY:
scb = isl->scb;
if (isc_pollqueue(scb->rd_msg_q))
if (event->msg = isc_popqueue(scb->rd_msg_q))
{
event->session = scb;
event->msg = isc_popqueue(scb->rd_msg_q);
event->event = ISC_EVENT_MESSAGE;
/* Move the session pointer to the next in the circular queue */
......
......@@ -30,12 +30,13 @@ isc_newqueue(void)
/* Return TRUE if the queue is not empty. */
#ifndef isc_pollqueue
int
isc_pollqueue(IscMsgQueue * queue)
{
return queue != NULL && queue->head != NULL;
}
#endif
void
isc_killqueue(IscMsgQueue * queue)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment