![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Section contents
csocket.oxh
The class represents an end point address. Protocols interpret the class within the socket server to route packets and form connections.
this& = NewSockAddr&:
Create a socket address object and returns a handle to the created object.
this& |
A handle which represents the created socket address object |
If the object could not be created then an error is generated
which should be trapped by an ONERR
handler.
DeleteSockAddr:(BYREF this&)
Destroys the socket address object.
BYREF this& |
A handle to a socket address object. A zero value is written back into the variable |
bool% = SockAddrCmpPort%:(this&,address&)
Use this function to compare ports in two addresses.
this& |
A handle to a socket address object |
address& |
A handle to a socket address object |
bool% |
KTrue%(-1) if the ports match and KFalse%(0)if they do not. |
family& = SockAddrFamily&:(this&)
Returns the address family of the address.
This can be used to determine whether this object is in fact an object which is derived from this one:
Family | Derived class object |
---|---|
KAfInet& |
Internet Address |
KAfIrdaAddrFamily& |
Irda Socket Address |
this& |
A handle to a socket address object |
family& |
Specifies the address family |
SockAddrSetFamily:(this&,family&)
Use this function to set the address family of an address.
this& |
A handle to a socket address object |
family& |
Specifies the address family |
port& = SockAddrPort&:(this&)
Use this function to determine the port value.
this& |
A handle to a socket address object |
port& |
The port in the address |
SockAddrSetPort:(this&,port&)
Use this function to set the address port of an address.
this& |
A handle to a socket address object |
port& |
The port to set in the address |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |