695 questions
1
vote
0
answers
126
views
Indy 10 TCPServer and SSL certificate verifying issue (error 20, SSL alert number 48)
I am developing an application, which has a built-in TCP server. I want the server to be secure via OpenSSL. The server has to identify its clients and the clients must identify the server.
If I ...
1
vote
1
answer
126
views
How to use epoll_wait in a TCP server accept loop? [closed]
I am writing a tcp server in C++ on Linux and am currently trying to move on from my thread pool to a event driven I/O system using epoll. My Server currently creates a listening socket, then accepts ...
0
votes
0
answers
72
views
What will happen if I send 2 SYN packets to the server together with same 4 tuple but different sequence number?
The SYN packets are sent together before receiving any SYN-ACK from the server. Both SYN has the same source dest IP address & port. They only differ in seq no, so what will happen in this case?
0
votes
1
answer
75
views
asyncio.server: how to filter on remote IP-address
I have a Tcp socket server class that is to run in CPython and MicroPython. It does, no problem there. Only I would like to extend its functionality with an IP filter. From an earlier version that ...
0
votes
0
answers
40
views
How to use flux to send 2 message at fixed intervals
I'm learning to use reactor-netty to create a TCP server with UI, and I have to do something like send a message to client then send other after 10s when I push a button.Here is my code
val fx = Flux&...
1
vote
1
answer
109
views
Ping/Pong message system in Java between clients and a server over TCP sockets
I need to create a connection between 4 clients and a server and they should communicate over a networkprotocol.
I'm quite clueless and I don't know what I need to implement in which class. I managed ...
-1
votes
1
answer
116
views
Client disconnecting right after the connection has been made [closed]
I have been asked to implement a card game(the loading and save don't function as intended, but this shouldn't affect the connection) from a previous project in a TCP server/client situation.
In order ...
0
votes
1
answer
50
views
Custom newline chracter in python socketserver.StreamRequestHandler
I'm implementing a socket server for python. Ideally I would use a socketserver.TCPServer in combination with thereadline-functionality of socketserver.StreamRequestHandler, see for instance the ...
1
vote
2
answers
326
views
TCP server in C and `while(1)` to keep listening
I would like to create a simple example TCP server in C. It should be able to receive multiple client connections and to send a string to each of them separately, before closing the connection.
Many ...
1
vote
0
answers
34
views
The message that the server sends to a client through TCP in Java gets changed when the client receives it
I'm working on an online game. For communication between clients and the server, I'm using TCP. Now, when clients send their usernames to the server, the server should message them back '1', but the ...
-1
votes
1
answer
297
views
Netty TCP Server only receiving 536 bytes from client. Remaining is truncated
I wrote a TCP Server application using project reactor netty. It's a simple application that receives a byte array request message from a client, processes it, then returns a byte array response ...
0
votes
1
answer
297
views
How does the socket buffer work in Linux?
I'm using python TCP server, and the clients will just send data to the server via sockets. In Linux, there are the buffer size defined for TCP. So does that mean when the client writes to the socket, ...
1
vote
0
answers
55
views
Browser closes connection on chunked data after recieving 6 chunks
I want to send images, videos, audio through TCP in chunks. I wrote this function
but for some reason every Browser I use closes the connection after recieving only a few chunks of data. Is there a ...
0
votes
0
answers
56
views
Can adb be leveraged to send commands to a running Linux application
I have a c++ application running on a linux device that supports adb and is connected to my laptop. The application does have a local server running.
void TCPServer::start()
{
...
0
votes
0
answers
200
views
TCP sequence number is incremented though the previous segment was not acked
Let me brief my scenario on SIP REGISTER, There is an endpoint behind NAT and gets connected to my application server over TCP via NAT device.
TCP Handshake done, endpoint(A) sent SIP REGISTER(let's ...