简体   繁体   中英

ruby socket programming using credentials

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM