network-programming tag

2 questions


1 answers
93 views
0
The java.net.URLEncoder.code(String) was deprecated. What should I write instead of this?

java.net.URLEncoder.encode I was going to use thiswarning: [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecatedI got this warning. So what should I write instead of that?


1 answers
139 views
0
[Network Programming] Is it possible to check the string sent by the client on the server?

retval=recv(clnt_socks[job1],buf,BUFSIZE,0);// // buf[retval]='\0';if (strcmp(answer, buf) == 0) { for (i = 0; i < clnt_cnt; i++) { //... }}else { for (i = 0; i < clnt_cnt; i++) { //... }}The ...


© 2024 OneMinuteCode. All rights reserved.