X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=dccp.c;fp=dccp.c;h=0000000000000000000000000000000000000000;hp=f5f940a665d1d4c160bd3b312f09c61c5e815ce5;hb=8d7f47e8cec74e4d209cfa1f6c4c0cec3b0e5019;hpb=7a8d90c41b758d1c3ae8530a44ccd9aaa857581e diff --git a/dccp.c b/dccp.c deleted file mode 100644 index f5f940a6..00000000 --- a/dccp.c +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2006-2007 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ - -/** \file dccp.c common functions of the dccp sender/receiver */ - -/* - * based on common.c of dccp-cs-0.01.tar.bz2, - * (C) 2005 Ian McDonald - */ - -#include -#include - -#include "para.h" -#include "error.h" -#include "dccp.h" -#include "fd.h" -#include "net.h" - -/** - * obtain a dccp socket for sending/receiving - * - * \return the file descriptor of the new socket or \p -E_DCCP_SOCKET - * on errors. - */ -int dccp_get_socket(void) -{ - int s = socket(AF_INET, SOCK_DCCP, IPPROTO_DCCP); - - if (s < 0) - return -E_DCCP_SOCKET; - return s; -} - -/** - * prepare a dccp socket - * - * \param fd the file descriptor of the socket - * - * \returns positive on success, negative on errors. - */ -int dccp_set_socket(__a_unused int fd) -{ - return 1; /* nothing to do at the moment */ -}