TCP-Unreal icon indicating copy to clipboard operation
TCP-Unreal copied to clipboard

How to disconnect ?

Open longlong10086 opened this issue 3 years ago • 1 comments

I tried the tcp server , at begin it worked well , after a momnet...

I failed to connect to the server ,and I find some connections (state likely close-wait,fin_wait,time-wait...) .

When should I disconnect ? And how to use in the event grah? Could it reconnect when disconnected to ensure normal communication ?

Looking forward to more detailed documentation . -_-

longlong10086 avatar Mar 10 '22 02:03 longlong10086

You can try CloseSocket on the client tcp component https://github.com/getnamo/tcp-ue4/blob/master/Source/TCPWrapper/Public/TCPClientComponent.h#L66 or StopListenServer on server component https://github.com/getnamo/tcp-ue4/blob/master/Source/TCPWrapper/Public/TCPServerComponent.h#L99

TCP doesn't reconnect automatically if disconnected, if you want a more fully featured network pipe consider https://github.com/getnamo/socketio-client-ue4

getnamo avatar Mar 10 '22 19:03 getnamo