The API to interact with xnet is exactly the same as that for xportal. xportal clients can usually be used as-is with xnet servers.