git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle short string correctly in blowfish encription.
[stg.git]
/
stglibs
/
srvconf.lib
/
netunit.h
diff --git
a/stglibs/srvconf.lib/netunit.h
b/stglibs/srvconf.lib/netunit.h
index f87fb3a864de758621200af456a21ec8e4dfbc0f..b6584ee57b46e68fdf75253b91e1202eb2304c04 100644
(file)
--- a/
stglibs/srvconf.lib/netunit.h
+++ b/
stglibs/srvconf.lib/netunit.h
@@
-32,6
+32,9
@@
public:
NETTRANSACT(const std::string & server, uint16_t port,
const std::string & login, const std::string & password);
NETTRANSACT(const std::string & server, uint16_t port,
const std::string & login, const std::string & password);
+ NETTRANSACT(const std::string & server, uint16_t port,
+ const std::string & localAddress, uint16_t localPort,
+ const std::string & login, const std::string & password);
int Transact(const std::string & request, CALLBACK f, void * data);
const std::string & GetError() const { return errorMsg; }
int Transact(const std::string & request, CALLBACK f, void * data);
const std::string & GetError() const { return errorMsg; }
@@
-52,6
+55,8
@@
private:
std::string server;
uint16_t port;
std::string server;
uint16_t port;
+ std::string localAddress;
+ uint16_t localPort;
std::string login;
std::string password;
int outerSocket;
std::string login;
std::string password;
int outerSocket;