Java socket programming connect with client via TCP serverport and secret key is stored in server.config like this: serv

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Java socket programming connect with client via TCP serverport and secret key is stored in server.config like this: serv

Post by answerhappygod »

Java socket programming connect with client via TCP
serverport and secret key is stored in server.config like
this:
server_port=8080
key=88
client send message like this
token:message
Server java compare message and do process if the message is
match
for example
token:quit = have "quit" statement and "token" is
right
server reply with
"closing session"
"done"
token come from user:pass:num1:num2 encoded in base64
num1 and num2 is stored in number.csv
num1,num2
1125684367,0787
9605347263,0808
user client can get token by send "num1:num2:request_token" to
server which server will reply with "token is: <token>"
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply