While reading about OpenSSL I've stumbled upon sentence: "It would be nice if security was as simple as linking in a different socket library when b开发者_高级运维uilding a program".
What is this mentioned socket library? What is it used for (i.e. in Java or C#)?
A socket is the endpoint of an Internet connection. A socket library is a library that implements sockets so that you can use them in your program for Internet communication.
What the text suggests is that it would be nice if you could replace your regular socket library (which would be for example a DLL on Windows) with a different version, which would automatically add SSL functionality for secure, encrypted connections - but adding SSL functionality is not as simple as that.
In Java or C#, you wouldn't use such a library directly. Java for example has classes in its standard API for working with Internet connections. You'd use that API in your Java program, and the JVM will use the socket library that the operating system provides to do the actual communication.
精彩评论