-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add GetHostConfig function #9
Conversation
LF_E_INET, LF_E_CLIENT, LF_E_IP, LF_E_SERVER | ||
*/ | ||
LEXFLOATCLIENT_API int LF_CC GetHostConfigInternal(STRTYPE hostConfigPtr, uint32_t length); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@muneebkq hostConfigPtr -> hostConfig
RETURN CODES: LF_OK, LF_E_PRODUCT_ID, LF_E_HOST_URL, LF_E_BUFFER_SIZE | ||
LF_E_INET, LF_E_CLIENT, LF_E_IP, LF_E_SERVER | ||
*/ | ||
func GetHostConfig(hostConfig *HostConfig) int { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@muneebkq The formatting does not seem to be right. Plus, remove extra lines
lexfloatclient.go
Outdated
LF_E_INET, LF_E_CLIENT, LF_E_IP, LF_E_SERVER | ||
*/ | ||
func GetHostConfig(hostConfig *HostConfig) int { | ||
var chostConfig = getCArray() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@muneebkq chostConfig -> cHostConfig
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the comments
GetHostConfig to retrieve the host configuration from LexFloatServer. The function sends a network request to get the configuration details and returns the result as a JSON string. The JSON string is then parsed and stored in a HostConfig struct.