2 * Copyright (C) 2006-2007 Andre Noll <maan@systemlinux.org>
4 * Licensed under the GPL v2. For licencing details see COPYING.
7 /** \file dccp.c common functions of the dccp sender/receiver */
10 * based on common.c of dccp-cs-0.01.tar.bz2,
11 * (C) 2005 Ian McDonald <imcdnzl@gmail.com>
14 #include <sys/types.h>
24 * obtain a dccp socket for sending/receiving
26 * \return the file descriptor of the new socket or \p -E_DCCP_SOCKET
29 int dccp_get_socket(void)
31 int s = socket(AF_INET, SOCK_DCCP, IPPROTO_DCCP);
34 return -E_DCCP_SOCKET;
39 * prepare a dccp socket
41 * \param fd the file descriptor of the socket
43 * \returns positive on success, negative on errors.
45 int dccp_set_socket(__a_unused int fd)
47 return 1; /* nothing to do at the moment */