git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added config serializer.
[stg.git]
/
projects
/
stargazer
/
plugins
/
other
/
rscript
/
send_functor.h
diff --git
a/projects/stargazer/plugins/other/rscript/send_functor.h
b/projects/stargazer/plugins/other/rscript/send_functor.h
index 8e216295ae36fea22cb2e8d1f473752ebb82f2a1..a14fe20b3e95cdf18ec602fc656d087974ab0654 100644
(file)
--- a/
projects/stargazer/plugins/other/rscript/send_functor.h
+++ b/
projects/stargazer/plugins/other/rscript/send_functor.h
@@
-32,16
+32,16
@@
#include <functional>
#include <functional>
-#include "os_int.h"
+#include "
stg/
os_int.h"
-class PacketSender : public std::unary_function<uint32_t,
in
t> {
+class PacketSender : public std::unary_function<uint32_t,
ssize_
t> {
public:
public:
- PacketSender(int s, char * b,
in
t l, uint16_t p)
+ PacketSender(int s, char * b,
size_
t l, uint16_t p)
: sock(s),
buffer(b),
length(l),
: sock(s),
buffer(b),
length(l),
- port(p) {}
;
-
in
t operator() (uint32_t ip)
+ port(p) {}
+
ssize_
t operator() (uint32_t ip)
{
struct sockaddr_in sendAddr;
{
struct sockaddr_in sendAddr;
@@
-54,7
+54,7
@@
class PacketSender : public std::unary_function<uint32_t, int> {
private:
int sock;
char * buffer;
private:
int sock;
char * buffer;
-
in
t length;
+
size_
t length;
uint16_t port;
};
uint16_t port;
};