문제

HI folks,

I'm trying to establish connection to a remote server using ruby socket connection TcpSocket.

I started with TcpSocket.new(port,host)

Now, How do I pass the credentials to it.

The remote server needs credentials to allow me to connect.

Any help is very much appreciated.

Thanks

도움이 되었습니까?

해결책

you must say with port and layer 7 protocol you are trying to use. A TCP socket itself don't n need any authentication. Probably you are trying to establish a layer 7 protocol connection (ftp, http, pop3) and then you will need a credential. If you specifiy in which port you are trying to connect maybe would be easier to help you

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top