Logo 
Search:

Networking Articles

Submit Article
Home » Articles » Networking » TCP/IPRSS Feeds

TCP/IP program to connect to a specified TCP service on a specified host

Posted By: Milind Mishra     Category: Networking     Views: 1533

TCP/IP program to connect to a specified TCP service on a specified host.

Code for TCP/IP program to connect to a specified TCP service on a specified host in Networking

int    connectsock(constchar *host, constchar *service,
        constchar *transport);

int
connectTCP(constchar *host, constchar *service )
/* * Arguments: *      host    - name of host to which connection is desired *      service - service associated with the desired port */
{
    return connectsock( host, service, "tcp");
}
  
Share: 



Milind Mishra
Milind Mishra author of TCP/IP program to connect to a specified TCP service on a specified host is from India.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!