X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=tcp.h;h=eddc4c8b4cd6bc8c53855918138f173779aff890;hb=refs%2Fheads%2Fdebian;hp=2864bb4a140fdade103628ea735e3583441ff096;hpb=39692c605e2f1c37efd38f675abdd22ac503b382;p=libradsec.git diff --git a/tcp.h b/tcp.h index 2864bb4..eddc4c8 100644 --- a/tcp.h +++ b/tcp.h @@ -1,12 +1,7 @@ -/* - * Copyright (C) 2008 Stig Venaas - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - */ +/* Copyright 2011 NORDUnet A/S. All rights reserved. + See LICENSE for licensing information. */ -int tcpconnect(struct server *server, struct timeval *when, int timeout, char *text); -int clientradputtcp(struct server *server, unsigned char *rad); -void *tcpclientrd(void *arg); -void *tcplistener(void *arg); +void tcp_event_cb (struct bufferevent *bev, short events, void *user_data); +void tcp_read_cb (struct bufferevent *bev, void *user_data); +void tcp_write_cb (struct bufferevent *bev, void *ctx); +int tcp_init_connect_timer (struct rs_connection *conn);