socket tag

57 questions


1 answers
72 views
0
How do you implement the server if you make mini games that run on the web?

I've only used Java socketsI'm a clean guy with no cloud experienceOn the cloud server-based webSimple users vs. users. If you sell omok,I'm asking you this question because I'm curious about how to i...

2 years ago

1 answers
63 views
0
I'd like to ask you a simple question about Python socket programming (about 50 lines of code including server cla). )

Server import socketHOST = PORT = 8081def receive(socket): data = socket.recv(1024) with open(D:/caps/test.jpg, 'wb') as f: try: while data: f.write(data) data = socket.recv(1024) except Except...

2 years ago

1 answers
53 views
0
Place functions in pointer variables

file *fp;fp = fopen(asd.txt, w);What is the point of substituting the fopen function, which functions to open asd.txt exclusively for writing, into the pointer variable?

2 years ago

1 answers
69 views
0
Socket programming sockaddr_in, in_addr structure

int main(int argc, char* argv[]){ struct sockaddr_in addr1, addr2; char* str_ptr; char str_arr[20]; addr1.sin_addr.s_addr = htonl(0x10203040);}where s_addr is the variable declared in the in_addr stru...

2 years ago

1 answers
68 views
0
Accept() function question

serv_sock=socket(PF_INET, SOCK_STREAM, 0);//...clnt_sock=accept(serv_sock, (struct sockaddr*)&clnt_addr,&clnt_addr_size); acceptI understand what the argument roles of the function mean. Howev...

2 years ago

1 answers
62 views
0
How do I send a string to a thread to create a chat program with Java socket programming?

import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.InputStreamReader;import java.io.OutputStreamWriter;import java.net.ServerSocket;import java.net.Socket;import java.util.Scan...

2 years ago

1 answers
78 views
0
How to communicate with C-language server Cortlin clients

When the button is clicked on the app, if you send a value of 1, the program consisting of c will work, and when you finish, you will send a value to the app to notify the app that it is finished and ...

2 years ago
« - 6 -

© 2024 OneMinuteCode. All rights reserved.