WillHubner / Horse-SocketIO

Middleware para Horse utilizando SocketIO.
24 stars 14 forks source link

StartSocket(55666); #7

Closed kabiri closed 2 years ago

kabiri commented 2 years ago

It gives this error when I run the example : Project Server.exe raised exception class EIdSocketError with message 'Socket Error # 10048 Address already in use.'.

Why did you use this line on the server?

initialization
  StartSocket(55666);

What happens if we have several different server programs on one computer? Of course, in my case, another program already uses this port. So is not it better to be able to set this from within the program

WillHubner commented 2 years ago

yes, if you open many instances, and all using 55666 port, cause this error.

Change the port and i believe that runs ok.

kabiri commented 2 years ago

The port hard coded I know I can change it It is better to define the port as a property. So that each program defines the desired value for the port at runtime.

WillHubner commented 2 years ago

Hi!!

I added the port on middleware!!

Thanks!!

@.*** Willian Hübner Coordenador de Análise e Desenvolvimento de Sistemas Unifasipe – Sinop/MT

De: @.> Enviado:quinta-feira, 7 de abril de 2022 02:49 Para: @.> Cc:Willian @.>; State @.> Assunto: Re: [WillHubner/Horse-SocketIO] StartSocket(55666); (Issue #7)

The port hard coded I know I can change it It is better to define the port as a property. So that each program defines the desired value for the port at runtime.

— Reply to this email directly, view it on GitHubhttps://github.com/WillHubner/Horse-SocketIO/issues/7#issuecomment-1091142270, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE2XUUTSY3IGSI4WE7BSNATVD2AQBANCNFSM5MVTCQBA. You are receiving this because you modified the open/close state.Message ID: @.***>

kabiri commented 2 years ago

Thanks