/* 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); }
int tcp_set_port(tcp_sock_t *tcp, int port) { ASSERT(tcp); return ip_set_port(&tcp->ip, port); }