Browse Source

add connector

1.0.0
Georg Hopp 11 years ago
parent
commit
8180119937
  1. 1
      include/Makefile.am
  2. 1
      include/trcomm.h
  3. 1
      src/Makefile.am
  4. 3
      src/comm_end_point.c
  5. 1
      src/connection.c

1
include/Makefile.am

@ -1,6 +1,7 @@
nobase_include_HEADERS = trcomm.h \ nobase_include_HEADERS = trcomm.h \
tr/comm_end_point.h \ tr/comm_end_point.h \
tr/connection.h \ tr/connection.h \
tr/connector.h \
tr/protocol.h \ tr/protocol.h \
tr/proto_message.h \ tr/proto_message.h \
tr/protocol/raw.h \ tr/protocol/raw.h \

1
include/trcomm.h

@ -3,6 +3,7 @@
#include "tr/comm_end_point.h" #include "tr/comm_end_point.h"
#include "tr/connection.h" #include "tr/connection.h"
#include "tr/connector.h"
#include "tr/protocol.h" #include "tr/protocol.h"
#include "tr/proto_message.h" #include "tr/proto_message.h"
#include "tr/protocol/raw.h" #include "tr/protocol/raw.h"

1
src/Makefile.am

@ -5,6 +5,7 @@ AM_CFLAGS += -I../include/
TRCOMM = comm_end_point.c \ TRCOMM = comm_end_point.c \
connection.c \ connection.c \
connector.c \
protocol.c \ protocol.c \
proto_message.c \ proto_message.c \
protocol_raw.c \ protocol_raw.c \

3
src/comm_end_point.c

@ -29,6 +29,7 @@
#include "trio.h" #include "trio.h"
#include "tr/comm_end_point.h" #include "tr/comm_end_point.h"
#include "tr/protocol.h"
#include "tr/interface/comm_end_point.h" #include "tr/interface/comm_end_point.h"
static static
@ -38,7 +39,7 @@ commEndPointCtor(void * _this, va_list * params)
TR_CommEndPoint this = _this; TR_CommEndPoint this = _this;
this->transport = va_arg(*params, TR_Socket); this->transport = va_arg(*params, TR_Socket);
this->protocol = va_arg(*params, void *);
this->protocol = va_arg(*params, TR_Protocol);
this->read_chunk_size = va_arg(*params, int); this->read_chunk_size = va_arg(*params, int);
this->do_close = 0; this->do_close = 0;
this->read_buffer = TR_new(TR_Queue); this->read_buffer = TR_new(TR_Queue);

1
src/connection.c

@ -52,6 +52,7 @@ connectionDtor(void * _this)
TR_Connection this = _this; TR_Connection this = _this;
TR_delete(this->current_message); TR_delete(this->current_message);
TR_PARENTCALL(_this, TR_Class, dtor);
} }
static static

Loading…
Cancel
Save