/* This work is licensed under a Creative Commons CCZero 1.0 Universal License.
 * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
 *
 *    Copyright 2016-2018 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
 *    Copyright 2017 (c) Thomas Stalder, Blue Time Concept SA
 */

#include <open62541/types.h>
#include <open62541/plugin/uaclient_rawsock.h>
#include "ua_client_internal.h"

int UA_Client_Rawsock(UA_Client * client)
{
	int ret;

	ret = -1;
	if (client != NULL)
		ret = (int) client->connection.sockfd;
	return ret;
}
