mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-19 14:29:34 +08:00
trival
This commit is contained in:
parent
c71abcd001
commit
c552a6fddf
6
main.cpp
6
main.cpp
@ -1851,7 +1851,7 @@ int recv_safe(packet_info_t &info,char* data,int len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int send_bare_data(packet_info_t &info,char* data,int len)
|
int send_bare_old(packet_info_t &info,char* data,int len)
|
||||||
{
|
{
|
||||||
char send_data_buf[buf_len]; //buf for send data and send hb
|
char send_data_buf[buf_len]; //buf for send data and send hb
|
||||||
char send_data_buf2[buf_len];
|
char send_data_buf2[buf_len];
|
||||||
@ -2033,7 +2033,7 @@ int keep_connection_client() //for client
|
|||||||
retry_counter = RETRY_TIME;
|
retry_counter = RETRY_TIME;
|
||||||
g_packet_info_send.icmp_seq=0;
|
g_packet_info_send.icmp_seq=0;
|
||||||
|
|
||||||
send_bare_data(g_packet_info_send, (char*)"hello", strlen("hello"));
|
send_bare_old(g_packet_info_send, (char*)"hello", strlen("hello"));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2072,7 +2072,7 @@ int keep_connection_client() //for client
|
|||||||
}
|
}
|
||||||
else if(raw_mode==mode_udp||raw_mode==mode_icmp)
|
else if(raw_mode==mode_udp||raw_mode==mode_icmp)
|
||||||
{
|
{
|
||||||
send_bare_data(g_packet_info_send, (char*)"hello", strlen("hello"));
|
send_bare_old(g_packet_info_send, (char*)"hello", strlen("hello"));
|
||||||
}
|
}
|
||||||
last_state_time=get_current_time();
|
last_state_time=get_current_time();
|
||||||
printf("retry send ack counter left:%d\n",retry_counter);
|
printf("retry send ack counter left:%d\n",retry_counter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user