|
From: Alex M. S. <arc...@us...> - 2004-04-13 20:45:00
|
Update of /cvsroot/nettle/nettle/h In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26817/h Modified Files: socket Log Message: Allows us to use named ports for ports in host:port strings, so we can do pop.freeserve.net:pop3 rather than having to know it's 110 and stuff Index: socket =================================================================== RCS file: /cvsroot/nettle/nettle/h/socket,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** socket 9 Sep 2001 21:33:31 -0000 1.13 --- socket 13 Apr 2004 20:30:56 -0000 1.14 *************** *** 36,40 **** --- 36,48 ---- int socket_connected(int socket_handle); + /** + * Tries to convert a port name (eg. pop3) into a numeric one + * + * @param port_name string containing port name + * + * @return port number, or 0 if unknown + */ + int socket_port_number_from_name(const char *port_name); /** |