indented per coding standard using indent.sh
This commit is contained in:
@@ -488,7 +488,7 @@ bool bacapp_parse_application_data(BACNET_APPLICATION_TAG tag_number,
|
||||
value->type.Signed_Int = long_value;
|
||||
} else if (tag_number == BACNET_APPLICATION_TAG_REAL) {
|
||||
double_value = strtod(argv, NULL);
|
||||
value->type.Real = (float)double_value;
|
||||
value->type.Real = (float) double_value;
|
||||
} else if (tag_number == BACNET_APPLICATION_TAG_DOUBLE) {
|
||||
double_value = strtod(argv, NULL);
|
||||
value->type.Double = double_value;
|
||||
|
||||
+22
-23
@@ -644,13 +644,12 @@ typedef enum {
|
||||
/* procedures and constraints described in Clause 23. */
|
||||
} BACNET_LIFE_SAFETY_STATE;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
typedef enum {
|
||||
SILENCED_STATE_UNSILENCED = 0,
|
||||
SILENCED_STATE_AUDIBLE_SILENCED = 1,
|
||||
SILENCED_STATE_VISIBLE_SILENCED = 2,
|
||||
SILENCED_STATE_ALL_SILENCED = 3,
|
||||
/* Enumerated values 0-63 are reserved for definition by ASHRAE.*/
|
||||
/* Enumerated values 0-63 are reserved for definition by ASHRAE. */
|
||||
/* Enumerated values 64-65535 may be used by others subject to */
|
||||
/* procedures and constraints described in Clause 23. */
|
||||
} BACNET_SILENCED_STATE;
|
||||
@@ -886,29 +885,29 @@ typedef enum {
|
||||
} BACNET_SERVICES_SUPPORTED;
|
||||
|
||||
typedef enum {
|
||||
BVLC_RESULT = 0,
|
||||
BVLC_WRITE_BROADCAST_DISTRIBUTION_TABLE = 1,
|
||||
BVLC_READ_BROADCAST_DISTRIBUTION_TABLE = 2,
|
||||
BVLC_READ_BROADCAST_DISTRIBUTION_TABLE_ACK = 3,
|
||||
BVLC_FORWARDED_NPDU = 4,
|
||||
BVLC_REGISTER_FOREIGN_DEVICE = 5,
|
||||
BVLC_READ_FOREIGN_DEVICE_TABLE = 6,
|
||||
BVLC_READ_FOREIGN_DEVICE_TABLE_ACK = 7,
|
||||
BVLC_DELETE_FOREIGN_DEVICE_TABLE_ENTRY = 8,
|
||||
BVLC_DISTRIBUTE_BROADCAST_TO_NETWORK = 9,
|
||||
BVLC_ORIGINAL_UNICAST_NPDU = 10,
|
||||
BVLC_ORIGINAL_BROADCAST_NPDU = 11,
|
||||
MAX_BVLC_FUNCTION = 12
|
||||
BVLC_RESULT = 0,
|
||||
BVLC_WRITE_BROADCAST_DISTRIBUTION_TABLE = 1,
|
||||
BVLC_READ_BROADCAST_DISTRIBUTION_TABLE = 2,
|
||||
BVLC_READ_BROADCAST_DISTRIBUTION_TABLE_ACK = 3,
|
||||
BVLC_FORWARDED_NPDU = 4,
|
||||
BVLC_REGISTER_FOREIGN_DEVICE = 5,
|
||||
BVLC_READ_FOREIGN_DEVICE_TABLE = 6,
|
||||
BVLC_READ_FOREIGN_DEVICE_TABLE_ACK = 7,
|
||||
BVLC_DELETE_FOREIGN_DEVICE_TABLE_ENTRY = 8,
|
||||
BVLC_DISTRIBUTE_BROADCAST_TO_NETWORK = 9,
|
||||
BVLC_ORIGINAL_UNICAST_NPDU = 10,
|
||||
BVLC_ORIGINAL_BROADCAST_NPDU = 11,
|
||||
MAX_BVLC_FUNCTION = 12
|
||||
} BACNET_BVLC_FUNCTION;
|
||||
|
||||
typedef enum {
|
||||
BVLC_RESULT_SUCCESSFUL_COMPLETION = 0x0000,
|
||||
BVLC_RESULT_WRITE_BROADCAST_DISTRIBUTION_TABLE_NAK = 0x0010,
|
||||
BVLC_RESULT_READ_BROADCAST_DISTRIBUTION_TABLE_NAK = 0x0020,
|
||||
BVLC_RESULT_REGISTER_FOREIGN_DEVICE_NAK = 0X0030,
|
||||
BVLC_RESULT_READ_FOREIGN_DEVICE_TABLE_NAK = 0x0040,
|
||||
BVLC_RESULT_DELETE_FOREIGN_DEVICE_TABLE_ENTRY_NAK = 0x0050,
|
||||
BVLC_RESULT_DISTRIBUTE_BROADCAST_TO_NETWORK_NAK = 0x0060
|
||||
BVLC_RESULT_SUCCESSFUL_COMPLETION = 0x0000,
|
||||
BVLC_RESULT_WRITE_BROADCAST_DISTRIBUTION_TABLE_NAK = 0x0010,
|
||||
BVLC_RESULT_READ_BROADCAST_DISTRIBUTION_TABLE_NAK = 0x0020,
|
||||
BVLC_RESULT_REGISTER_FOREIGN_DEVICE_NAK = 0X0030,
|
||||
BVLC_RESULT_READ_FOREIGN_DEVICE_TABLE_NAK = 0x0040,
|
||||
BVLC_RESULT_DELETE_FOREIGN_DEVICE_TABLE_ENTRY_NAK = 0x0050,
|
||||
BVLC_RESULT_DISTRIBUTE_BROADCAST_TO_NETWORK_NAK = 0x0060
|
||||
} BACNET_BVLC_RESULT;
|
||||
|
||||
/* Bit String Enumerations */
|
||||
|
||||
+4
-4
@@ -254,7 +254,7 @@ uint16_t bip_receive(BACNET_ADDRESS * src, /* source address */
|
||||
if (buf[0] != BVLL_TYPE_BACNET_IP)
|
||||
return 0;
|
||||
if ((buf[1] == BVLC_ORIGINAL_UNICAST_NPDU) ||
|
||||
(buf[1] == BVLC_ORIGINAL_BROADCAST_NPDU)) {
|
||||
(buf[1] == BVLC_ORIGINAL_BROADCAST_NPDU)) {
|
||||
/* ignore messages from me */
|
||||
if (sin.sin_addr.s_addr == BIP_Address.s_addr)
|
||||
pdu_len = 0;
|
||||
@@ -278,11 +278,11 @@ uint16_t bip_receive(BACNET_ADDRESS * src, /* source address */
|
||||
pdu_len = 0;
|
||||
}
|
||||
}
|
||||
#ifdef BBMD_ENABLED
|
||||
#ifdef BBMD_ENABLED
|
||||
if (buf[1] < MAX_BVLC_FUNCTION) {
|
||||
bbmd_handler(&buf[0], received_bytes, &sin);
|
||||
bbmd_handler(&buf[0], received_bytes, &sin);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
return pdu_len;
|
||||
}
|
||||
|
||||
+572
-629
File diff suppressed because it is too large
Load Diff
+13
-12
@@ -30,23 +30,24 @@
|
||||
based on this file might be covered by the GNU General Public
|
||||
License.
|
||||
-------------------------------------------
|
||||
####COPYRIGHTEND####*/
|
||||
####COPYRIGHTEND####*/
|
||||
#ifndef BVLC_H
|
||||
#define BVLC_H
|
||||
|
||||
|
||||
#include <stdint.h> /* for standard integer types uint8_t etc. */
|
||||
#include <stdbool.h> /* for the standard bool type. */
|
||||
#include "bip.h"
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* called from BACnet/IP handler */
|
||||
void bvlc_handler(uint8_t *buf, int len, struct sockaddr_in *sin);
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* called from BACnet/IP handler */
|
||||
void bvlc_handler(uint8_t * buf, int len, struct sockaddr_in *sin);
|
||||
|
||||
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
#endif
|
||||
|
||||
|
||||
+1
-1
@@ -174,7 +174,7 @@ int dcc_decode_service_request(uint8_t * apdu,
|
||||
&len_value_type);
|
||||
len += decode_unsigned(&apdu[len], len_value_type, &value32);
|
||||
if (timeDuration)
|
||||
*timeDuration = (uint16_t)value32;
|
||||
*timeDuration = (uint16_t) value32;
|
||||
} else if (timeDuration)
|
||||
*timeDuration = 0;
|
||||
/* Tag 1: enable_disable */
|
||||
|
||||
@@ -121,7 +121,7 @@ int Analog_Input_Encode_Property_APDU(uint8_t * apdu,
|
||||
case PROP_UNITS:
|
||||
apdu_len = encode_tagged_enumerated(&apdu[0], UNITS_PERCENT);
|
||||
break;
|
||||
/* test case for signed encoding and decoding negative value correctly */
|
||||
/* test case for signed encoding and decoding negative value correctly */
|
||||
case 9999:
|
||||
apdu_len = encode_tagged_signed(&apdu[0], -200);
|
||||
break;
|
||||
|
||||
@@ -104,7 +104,8 @@ unsigned Binary_Output_Instance_To_Index(uint32_t object_instance)
|
||||
return index;
|
||||
}
|
||||
|
||||
static BACNET_BINARY_PV Binary_Output_Present_Value(uint32_t object_instance)
|
||||
static BACNET_BINARY_PV Binary_Output_Present_Value(uint32_t
|
||||
object_instance)
|
||||
{
|
||||
BACNET_BINARY_PV value = RELINQUISH_DEFAULT;
|
||||
unsigned index = 0;
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "bi.h" /* object list dependency */
|
||||
#include "bo.h" /* object list dependency */
|
||||
#include "ao.h" /* object list dependency */
|
||||
#include "lsp.h" /* object list dependency */
|
||||
#include "lsp.h" /* object list dependency */
|
||||
#include "wp.h" /* write property handling */
|
||||
#include "device.h" /* me */
|
||||
#if BACFILE
|
||||
@@ -67,11 +67,11 @@ static char Description[16] = "server";
|
||||
/* static uint8_t Max_Segments_Accepted = 0; */
|
||||
/* VT_Classes_Supported */
|
||||
/* Active_VT_Sessions */
|
||||
BACNET_TIME Local_Time; /* rely on OS, if there is one */
|
||||
BACNET_DATE Local_Date; /* rely on OS, if there is one */
|
||||
BACNET_TIME Local_Time; /* rely on OS, if there is one */
|
||||
BACNET_DATE Local_Date; /* rely on OS, if there is one */
|
||||
/* BACnet UTC is inverse of standard offset - i.e. relative to local */
|
||||
static int UTC_Offset = 5;
|
||||
static bool Daylight_Savings_Status = false; /* rely on OS */
|
||||
static int UTC_Offset = 5;
|
||||
static bool Daylight_Savings_Status = false; /* rely on OS */
|
||||
/* APDU_Segment_Timeout */
|
||||
static uint16_t APDU_Timeout = 3000;
|
||||
static uint8_t Number_Of_APDU_Retries = 3;
|
||||
@@ -405,7 +405,7 @@ bool Device_Object_List_Identifier(unsigned array_index,
|
||||
}
|
||||
/* file objects */
|
||||
#if BACFILE
|
||||
if (!status) {
|
||||
if (!status) {
|
||||
/* normalize the index since
|
||||
we know it is not the previous objects */
|
||||
object_index -= Life_Safety_Point_Count();
|
||||
@@ -541,32 +541,32 @@ int Device_Encode_Property_APDU(uint8_t * apdu,
|
||||
Application_Software_Version);
|
||||
apdu_len = encode_tagged_character_string(&apdu[0], &char_string);
|
||||
break;
|
||||
/* FIXME: if you support time */
|
||||
/* FIXME: if you support time */
|
||||
case PROP_LOCAL_TIME:
|
||||
/* FIXME: get the actual value */
|
||||
Local_Time.hour = 7;
|
||||
Local_Time.min = 0;
|
||||
Local_Time.sec = 3;
|
||||
Local_Time.hundredths = 1;
|
||||
apdu_len =
|
||||
encode_tagged_time(&apdu[0], &Local_Time);
|
||||
break;
|
||||
/* FIXME: if you support time */
|
||||
apdu_len = encode_tagged_time(&apdu[0], &Local_Time);
|
||||
break;
|
||||
/* FIXME: if you support time */
|
||||
case PROP_UTC_OFFSET:
|
||||
/* NOTE: if your UTC offset is -5, then BACnet UTC offset is 5 */
|
||||
apdu_len = encode_tagged_signed(&apdu[0], UTC_Offset);
|
||||
break;
|
||||
/* FIXME: if you support date */
|
||||
/* FIXME: if you support date */
|
||||
case PROP_LOCAL_DATE:
|
||||
/* FIXME: get the actual value instead of April Fool's Day */
|
||||
Local_Date.year = 2006; /* AD */
|
||||
Local_Date.month = 4; /* 1=Jan */
|
||||
Local_Date.day = 1; /* 1..31 */
|
||||
Local_Date.wday = 6; /* 1=Monday */
|
||||
apdu_len = encode_tagged_date(&apdu[0],&Local_Date);
|
||||
Local_Date.year = 2006; /* AD */
|
||||
Local_Date.month = 4; /* 1=Jan */
|
||||
Local_Date.day = 1; /* 1..31 */
|
||||
Local_Date.wday = 6; /* 1=Monday */
|
||||
apdu_len = encode_tagged_date(&apdu[0], &Local_Date);
|
||||
break;
|
||||
case PROP_DAYLIGHT_SAVINGS_STATUS:
|
||||
apdu_len = encode_tagged_boolean(&apdu[0], Daylight_Savings_Status);
|
||||
apdu_len =
|
||||
encode_tagged_boolean(&apdu[0], Daylight_Savings_Status);
|
||||
break;
|
||||
case PROP_PROTOCOL_VERSION:
|
||||
apdu_len =
|
||||
@@ -601,18 +601,18 @@ int Device_Encode_Property_APDU(uint8_t * apdu,
|
||||
/* FIXME: indicate the objects that YOU support */
|
||||
bitstring_set_bit(&bit_string, OBJECT_DEVICE, true);
|
||||
if (Analog_Input_Count())
|
||||
bitstring_set_bit(&bit_string, OBJECT_ANALOG_INPUT, true);
|
||||
bitstring_set_bit(&bit_string, OBJECT_ANALOG_INPUT, true);
|
||||
if (Analog_Output_Count())
|
||||
bitstring_set_bit(&bit_string, OBJECT_ANALOG_OUTPUT, true);
|
||||
bitstring_set_bit(&bit_string, OBJECT_ANALOG_OUTPUT, true);
|
||||
if (Binary_Input_Count())
|
||||
bitstring_set_bit(&bit_string, OBJECT_BINARY_INPUT, true);
|
||||
bitstring_set_bit(&bit_string, OBJECT_BINARY_INPUT, true);
|
||||
if (Binary_Output_Count())
|
||||
bitstring_set_bit(&bit_string, OBJECT_BINARY_OUTPUT, true);
|
||||
bitstring_set_bit(&bit_string, OBJECT_BINARY_OUTPUT, true);
|
||||
if (Life_Safety_Point_Count())
|
||||
bitstring_set_bit(&bit_string, OBJECT_LIFE_SAFETY_POINT, true);
|
||||
bitstring_set_bit(&bit_string, OBJECT_LIFE_SAFETY_POINT, true);
|
||||
#if BACFILE
|
||||
if (bacfile_count())
|
||||
bitstring_set_bit(&bit_string, OBJECT_FILE, true);
|
||||
bitstring_set_bit(&bit_string, OBJECT_FILE, true);
|
||||
#endif
|
||||
apdu_len = encode_tagged_bitstring(&apdu[0], &bit_string);
|
||||
break;
|
||||
@@ -681,8 +681,7 @@ int Device_Encode_Property_APDU(uint8_t * apdu,
|
||||
/* FIXME: encode the list here, if it exists */
|
||||
break;
|
||||
case PROP_DATABASE_REVISION:
|
||||
apdu_len =
|
||||
encode_tagged_unsigned(&apdu[0], Database_Revision);
|
||||
apdu_len = encode_tagged_unsigned(&apdu[0], Database_Revision);
|
||||
break;
|
||||
default:
|
||||
*error_class = ERROR_CLASS_PROPERTY;
|
||||
|
||||
@@ -61,7 +61,8 @@ void Life_Safety_Point_Init(void)
|
||||
for (i = 0; i < MAX_LIFE_SAFETY_POINTS; i++) {
|
||||
Life_Safety_Point_Mode[i] = LIFE_SAFETY_MODE_DEFAULT;
|
||||
Life_Safety_Point_State[i] = LIFE_SAFETY_STATE_QUIET;
|
||||
Life_Safety_Point_Silenced_State[i] = SILENCED_STATE_UNSILENCED;
|
||||
Life_Safety_Point_Silenced_State[i] =
|
||||
SILENCED_STATE_UNSILENCED;
|
||||
Life_Safety_Point_Operation[i] = LIFE_SAFETY_OPERATION_NONE;
|
||||
}
|
||||
}
|
||||
@@ -112,7 +113,8 @@ unsigned Life_Safety_Point_Instance_To_Index(uint32_t object_instance)
|
||||
return index;
|
||||
}
|
||||
|
||||
static BACNET_LIFE_SAFETY_STATE Life_Safety_Point_Present_Value(uint32_t object_instance)
|
||||
static BACNET_LIFE_SAFETY_STATE Life_Safety_Point_Present_Value(uint32_t
|
||||
object_instance)
|
||||
{
|
||||
BACNET_LIFE_SAFETY_STATE present_value = LIFE_SAFETY_STATE_QUIET;
|
||||
unsigned index = 0;
|
||||
@@ -156,12 +158,12 @@ int Life_Safety_Point_Encode_Property_APDU(uint8_t * apdu,
|
||||
unsigned object_index = 0;
|
||||
bool state = false;
|
||||
BACNET_RELIABILITY reliability = RELIABILITY_NO_FAULT_DETECTED;
|
||||
|
||||
(void)array_index; /* currently not used */
|
||||
|
||||
(void) array_index; /* currently not used */
|
||||
Life_Safety_Point_Init();
|
||||
switch (property) {
|
||||
apdu_len = encode_tagged_object_id(&apdu[0], OBJECT_LIFE_SAFETY_POINT,
|
||||
case PROP_OBJECT_IDENTIFIER:
|
||||
apdu_len =
|
||||
encode_tagged_object_id(&apdu[0], OBJECT_LIFE_SAFETY_POINT,
|
||||
object_instance);
|
||||
break;
|
||||
@@ -190,7 +192,8 @@ int Life_Safety_Point_Encode_Property_APDU(uint8_t * apdu,
|
||||
case PROP_EVENT_STATE:
|
||||
apdu_len = encode_tagged_enumerated(&apdu[0], EVENT_STATE_NORMAL);
|
||||
break;
|
||||
object_index = Life_Safety_Point_Instance_To_Index(object_instance);
|
||||
case PROP_OUT_OF_SERVICE:
|
||||
object_index =
|
||||
Life_Safety_Point_Instance_To_Index(object_instance);
|
||||
state = Life_Safety_Point_Out_Of_Service[object_index];
|
||||
apdu_len = encode_tagged_boolean(&apdu[0], state);
|
||||
@@ -200,24 +203,27 @@ int Life_Safety_Point_Encode_Property_APDU(uint8_t * apdu,
|
||||
reliability = RELIABILITY_NO_FAULT_DETECTED;
|
||||
apdu_len = encode_tagged_enumerated(&apdu[0], reliability);
|
||||
break;
|
||||
object_index = Life_Safety_Point_Instance_To_Index(object_instance);
|
||||
case PROP_MODE:
|
||||
object_index =
|
||||
Life_Safety_Point_Instance_To_Index(object_instance);
|
||||
mode = Life_Safety_Point_Mode[object_index];
|
||||
apdu_len = encode_tagged_enumerated(&apdu[0], mode);
|
||||
break;
|
||||
for (mode = MIN_LIFE_SAFETY_MODE; mode < MAX_LIFE_SAFETY_MODE; mode++)
|
||||
{
|
||||
len = encode_tagged_enumerated(&apdu[apdu_len], mode);
|
||||
apdu_len += len;
|
||||
case PROP_ACCEPTED_MODES:
|
||||
for (mode = MIN_LIFE_SAFETY_MODE; mode < MAX_LIFE_SAFETY_MODE;
|
||||
mode++) {
|
||||
len = encode_tagged_enumerated(&apdu[apdu_len], mode);
|
||||
apdu_len += len;
|
||||
}
|
||||
break;
|
||||
object_index = Life_Safety_Point_Instance_To_Index(object_instance);
|
||||
case PROP_SILENCED:
|
||||
object_index =
|
||||
Life_Safety_Point_Instance_To_Index(object_instance);
|
||||
silenced_state = Life_Safety_Point_Silenced_State[object_index];
|
||||
apdu_len = encode_tagged_enumerated(&apdu[0], silenced_state);
|
||||
break;
|
||||
object_index = Life_Safety_Point_Instance_To_Index(object_instance);
|
||||
case PROP_OPERATION_EXPECTED:
|
||||
object_index =
|
||||
Life_Safety_Point_Instance_To_Index(object_instance);
|
||||
operation = Life_Safety_Point_Operation[object_index];
|
||||
apdu_len = encode_tagged_enumerated(&apdu[0], operation);
|
||||
@@ -248,10 +254,13 @@ bool Life_Safety_Point_Write_Property(BACNET_WRITE_PROPERTY_DATA * wp_data,
|
||||
/* decode the some of the request */
|
||||
switch (wp_data->object_property) {
|
||||
case PROP_MODE:
|
||||
if ((wp_data->value.type.Enumerated >= MIN_LIFE_SAFETY_MODE) &&
|
||||
if (wp_data->value.tag == BACNET_APPLICATION_TAG_ENUMERATED) {
|
||||
if ((wp_data->value.type.Enumerated >= MIN_LIFE_SAFETY_MODE) &&
|
||||
object_index = Life_Safety_Point_Instance_To_Index(wp_data->object_instance);
|
||||
Life_Safety_Point_Mode[object_index] = wp_data->value.type.Enumerated;
|
||||
(wp_data->value.type.Enumerated <= MIN_LIFE_SAFETY_MODE)) {
|
||||
object_index =
|
||||
Life_Safety_Point_Instance_To_Index(wp_data->
|
||||
object_instance);
|
||||
Life_Safety_Point_Mode[object_index] =
|
||||
wp_data->value.type.Enumerated;
|
||||
status = true;
|
||||
} else {
|
||||
@@ -265,7 +274,8 @@ bool Life_Safety_Point_Write_Property(BACNET_WRITE_PROPERTY_DATA * wp_data,
|
||||
break;
|
||||
case PROP_OUT_OF_SERVICE:
|
||||
if (wp_data->value.tag == BACNET_APPLICATION_TAG_BOOLEAN) {
|
||||
Life_Safety_Point_Instance_To_Index(wp_data->object_instance);
|
||||
object_index =
|
||||
Life_Safety_Point_Instance_To_Index(wp_data->
|
||||
object_instance);
|
||||
Life_Safety_Point_Out_Of_Service[object_index] =
|
||||
wp_data->value.type.Boolean;
|
||||
|
||||
@@ -46,8 +46,9 @@ extern "C" {
|
||||
int32_t array_index,
|
||||
BACNET_ERROR_CLASS * error_class, BACNET_ERROR_CODE * error_code);
|
||||
|
||||
bool Life_Safety_Point_Write_Property(BACNET_WRITE_PROPERTY_DATA * wp_data,
|
||||
BACNET_ERROR_CLASS * error_class, BACNET_ERROR_CODE * error_code);
|
||||
bool Life_Safety_Point_Write_Property(BACNET_WRITE_PROPERTY_DATA *
|
||||
wp_data, BACNET_ERROR_CLASS * error_class,
|
||||
BACNET_ERROR_CODE * error_code);
|
||||
|
||||
#ifdef TEST
|
||||
#include "ctest.h"
|
||||
|
||||
@@ -159,7 +159,7 @@ bool bip_init(void)
|
||||
bip_set_socket(-1);
|
||||
return false;
|
||||
}
|
||||
#if 0
|
||||
#if 0
|
||||
/* probably only for Apple... */
|
||||
/* rebind a port that is already in use.
|
||||
Note: all users of the port must specify this flag */
|
||||
@@ -171,7 +171,7 @@ bool bip_init(void)
|
||||
bip_set_socket(-1);
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
/* bind the socket to the local port number and IP address */
|
||||
sin.sin_family = AF_INET;
|
||||
#if USE_INADDR
|
||||
|
||||
Reference in New Issue
Block a user