0% found this document useful (0 votes)
61 views1 page

Connect

Connect initiates a connection on an existing socket referred to by sockfd to the server address specified by serv_addr, which is addrlen bytes long. The connect call returns 0 on success or -1 on error.

Uploaded by

api-3734782
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views1 page

Connect

Connect initiates a connection on an existing socket referred to by sockfd to the server address specified by serv_addr, which is addrlen bytes long. The connect call returns 0 on success or -1 on error.

Uploaded by

api-3734782
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

name

connect - initiate a connection on a socket


synopsis
#include <sys/types.h>
#include <sys/socket.h>
int connect(int sockfd, const struct sockaddr *serv_addr, socklen_t addrlen);

You might also like