diff options
Diffstat (limited to 'source3/libsmb/libsmb_setget.c')
-rw-r--r-- | source3/libsmb/libsmb_setget.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source3/libsmb/libsmb_setget.c b/source3/libsmb/libsmb_setget.c index 60bbc8bc5e..0bd5290f4b 100644 --- a/source3/libsmb/libsmb_setget.c +++ b/source3/libsmb/libsmb_setget.c @@ -116,6 +116,25 @@ smbc_setTimeout(SMBCCTX *c, int timeout) c->timeout = timeout; } +/** + * Get the TCP port used to connect. + */ +uint16_t +smbc_getPort(SMBCCTX *c) +{ + return c->internal->port; +} + +/** + * Set the TCP port used to connect. + */ +void +smbc_setPort(SMBCCTX *c, uint16_t port) +{ + c->internal->port = port; +} + + /** Get whether to log to standard error instead of standard output */ smbc_bool smbc_getOptionDebugToStderr(SMBCCTX *c) |