git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed "using namespace std;" from rscriptd.
[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 b9b789eaf1556ed034ae350b29b6479d96714b63..a14fe20b3e95cdf18ec602fc656d087974ab0654 100644
(file)
--- a/
projects/stargazer/plugins/other/rscript/send_functor.h
+++ b/
projects/stargazer/plugins/other/rscript/send_functor.h
@@
-34,14
+34,14
@@
#include "stg/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;
};