Ace_Packet_Src_Socket_Get()
Abstract
Returns the port number used by the source.
Syntax
Ace_Packet_Src_Socket_Get (pk_ptr)
| Argument | Type | Description |
|---|---|---|
pk_ptr |
AceT_Packet * |
Packet of interest |
Return Type
int
Port number used by the source.
Header
ace_client_api.h
Example
hash_key = op_ica_conn_hash_key_obtain (
Ace_Packet_Src_Host_Get (pk_ptr),
Ace_Packet_Src_Socket_Get (pk_ptr),
Ace_Packet_Dest_Host_Get (pk_ptr),
Ace_Packet_Dest_Socket_Get (pk_ptr));
Details
This function provides a convenient way for an application-level protocol decoder to retrieve the port used by the sender. For example, some protocols open multiple TCP connections, one for control messages and the others for data messages.