Exemple #1
0
/* Accessors*/
int tcp_set_port(tcp_sock_t *p_self, int p)
{
	if (p_self == NULL) {
		return RC_INVALID_POINTER;
	}

	return ip_set_port(&p_self->super, p);
}
Exemple #2
0
int tcp_set_port(tcp_sock_t *tcp, int port)
{
	ASSERT(tcp);

	return ip_set_port(&tcp->ip, port);
}